SA-MP Forums Archive
Question about SetPVar - 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: Question about SetPVar (/showthread.php?tid=359266)



Question about SetPVar - CoDeZ - 13.07.2012

Hello
Can anyone tell me please , what's the difference between
Setpvar

and between creating a new variable like this

pawn Код:
new IsPlayerAfk[MAX_PLAYERS];



Re: Question about SetPVar - Rac3r - 13.07.2012

One is created when server is loaded (new), the other is created when player requires it. However, PVar's are slightly slower.


Re: Question about SetPVar - CoDeZ - 13.07.2012

Thank you.
But they both have the same result?


Re: Question about SetPVar - Larceny - 13.07.2012

Quote:
Originally Posted by CoDeZ
Посмотреть сообщение
Thank you.
But they both have the same result?
Somehow, yes.
Read this for further clarification:
PVars - when, and when not, to use them