Also make sure you check Steam ID's properly!
GetClientAuthId returns a boolean of TRUE/FALSE:
Code:
if (GetClientAuthId(client, AuthId_Steam2, steamId, sizeof(steamId))) {
/* What I want to do if I get a proper Steam ID here */
}
If it is important stuff, re-try later if it returns FALSE, e.g.:
Code:
if (GetClientAuthId(client, AuthId_Steam2, steamId, sizeof(steamId))) {
/* What I want to do if I get a proper Steam ID here */
} else {
/* Start a timer to re-check in a minute here.... */
}
__________________