SA-MP Forums Archive
Difference between, simple variables and pvar - 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: Difference between, simple variables and pvar (/showthread.php?tid=622985)



Difference between, simple variables and pvar - MerryDeer - 28.11.2016

Hi,

Is there high difference between simple variables like

new hello[ MAX_PLAYERS ];

and

GetPVarInt
SetPvarInt

?


Re: Difference between, simple variables and pvar - valerastar - 28.11.2016

yes. simple variables u can use only in a gamemode/filterscript, where there r used. PVars, u can use serverwide. Example, if in gamemode i set SetPVarInt(playerid,"Logged",1);, you can go to any filterscript, and use GetPVar(playerid,"Logged");, and it will return 1;


Re: Difference between, simple variables and pvar - SickAttack - 28.11.2016

Is there a difference between your brain and a peanut? Unfortunately, no...

You just don't stop with these threads, do you...