View Single Post
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 10-14-2017 , 14:19   Re: Simple Plugin does not work.
Reply With Quote #4

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.... */
}
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline