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

SetServerName

(Difference between revisions)
Return to current revision
Current Revision 08-23-2012, 11:44 PM
  1.  
    Sets the name of the server.
  2. -

    == Declaration ==
    <code cpp>
    VAULTSCRIPT void (*SetServerName)(std::string);
    native SetServerName(name{});
    </code>
    == Parameters ==

    '''name''' - the new server name

    == Return value ==

  3. +
    [h="2"] Declaration [/h]
    [highlight=cpp]
    VAULTSCRIPT VAULTSPACE Void (*VAULTAPI(SetServerName))(VAULTSPACE cRawString) _CPP(noexcept);
    [/highlight]
    [highlight=c]
    native SetServerName(const name{});
    [/highlight]
    [h="2"] Parameters [/h]
    [b][wiki="cRawString"]cRawString[/wiki][/b] - the new server name
    [h="2"] Return value [/h]
  4.  
    None.
  5. -

    == Usage example (C++) ==

    <code cpp>
    std::string name = "My first server";
    SetServerName(name);
    </code>
  6. +
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Misc functions[/category]