Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Lorenc_
pawn Код:
if(GetPVarInt(playerid, "RespondingID")) //if it's set { } else //else if it isn't { }
EDIT: sorry was afk and waiting for the posting time to decrease.
|
That will trigger an error if the value is 0, if a PVar doesn't exist, it'll automatically return 0. Using GetPVarType will accurately determine whether the PVar currently exists or not.
Lorenc_'s code will not work for player ID 0.