SetPVarInt - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetPVarInt (
/showthread.php?tid=559105)
SetPVarInt -
Cerealguy - 21.01.2015
It is a rather stupid question, it is necessary to establish at 0 SetPVarInt in OnPlayerConnect?
Re: SetPVarInt -
vassilis - 21.01.2015
it is more to avoid future bugs but no its not necessary as far as i know.
Respuesta: Re: SetPVarInt -
Cerealguy - 21.01.2015
Quote:
Originally Posted by vassilis
it is more to avoid future bugs but no its not necessary as far as i know.
|
thought so, thanks for the reply friend
Re: SetPVarInt -
Eyce - 21.01.2015
No it's not. It's automatically set to 0 when a player connects. I would suggest that you set it if you're going to use it for player IDs. Such as:
pawn Код:
public OnPlayerConnect(playerid)
{
SetPVarInt(playerid, "Killer", INVALID_PLAYER_ID);
return 1;
}