GetServerAuthId Function

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.)

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).

Errors

Invalid AuthIdType given.