GetServerAuthId

Last Updated2016-04-27
Created At2016-04-27

Retrieves the server's authentication string (SteamID). Note: If called before server is connected to Steam, auth id will be invalid ([I:0:1], 1, etc.)

native void GetServerAuthId(AuthIdType authType, char[] auth, int maxlen)

Parameters

AuthIdType authType
Auth id type and format to use. (Only AuthId_Steam3 and AuthId_SteamID64 are supported)
char[] auth
Buffer to store the server's auth id.
int maxlen
Maximum length of string buffer (includes NULL terminator).

Return Value

void

Error

Invalid AuthIdType given.