This site has been archived and made available for preservation purposes. No edits can be made.

SetServerName

(Difference between revisions)
Return to current revision
  1.  
    Sets the name of the server.
    [h="2"] Declaration [/h]
    [highlight=cpp]
  2. -
    VAULTSCRIPT vaultmp::Void (*SetServerName)(vaultmp::String);
    native SetServerName(name{});
  3. +
    VAULTSCRIPT VAULTSPACE Void (*VAULTAPI(SetServerName))(VAULTSPACE cRawString) _CPP(noexcept);
    [/highlight]
    [highlight=c]
    native SetServerName(const name{});
  4.  
    [/highlight]
    [h="2"] Parameters [/h]
  5. -
    [b][wiki="String"]vaultmp::String[/wiki][/b] - the new server name
  6. +
    [b][wiki="String"]String[/wiki][/b] - the new server name
  7.  
    [h="2"] Return value [/h]
    None.
  8. -
    [h="2"] Usage example (C++) [/h]
    [highlight=cpp]
    vaultmp::String name = "My first server";
    SetServerName(name);
    [/highlight]
  9.  
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Misc functions[/category]