/r to pm's
#7

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


Messages In This Thread
/r to pm's - by jamesbond007 - 18.12.2011, 03:31
Re: /r to pm's - by Calgon - 18.12.2011, 03:36
Re: /r to pm's - by jamesbond007 - 18.12.2011, 03:46
Re: /r to pm's - by Calgon - 18.12.2011, 03:50
Re: /r to pm's - by jamesbond007 - 18.12.2011, 03:53
Re: /r to pm's - by Lorenc_ - 18.12.2011, 03:54
Re: /r to pm's - by Calgon - 18.12.2011, 03:57

Forum Jump:


Users browsing this thread: 1 Guest(s)