This site has been archived and made available for preservation purposes. No edits can be made.
SetServerName
(Difference between revisions)
Return to current revision
-
Sets the name of the server.
[h="2"] Declaration [/h]
-
-
<code cpp>
VAULTSCRIPT void (*SetServerName)(std::string);
-
+
[highlight=cpp]
VAULTSCRIPT vaultmp::Void (*SetServerName)(std::string);
-
native SetServerName(name{});
-
-
</code>
-
+
[/highlight]
-
[h="2"] Parameters [/h]
[b]name[/b] - the new server name
[h="2"] Return value [/h]
None.
[h="2"] Usage example (C++) [/h]
-
-
<code cpp>
-
+
[highlight=cpp]
-
std::string name = "My first server";
SetServerName(name);
-
-
</code>
-
+
[/highlight]
-
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Misc functions[/category]