A little question about SetPVar and GetPVar - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A little question about SetPVar and GetPVar (
/showthread.php?tid=175822)
A little question about SetPVar and GetPVar -
VirSpectorX - 11.09.2010
For example, i have a Gamemode. And then i add this script:
pawn Код:
SetPVarInt(2, "cool", 200); //Sets ID 2 Player Variable "cool" into 200
And then, i open in a Filterscript that i'm going to use it together with the gamemode:
pawn Код:
new pVar;
pVar = GetPVarInt(2, "cool");
Will that GetPVarInt returns
200 (Like in the gamemode) into the pVar Variable?
I mean, can GetPVar(Int/Str, etc...) used across scripts?
Re: A little question about SetPVar and GetPVar -
VirSpectorX - 11.09.2010
Would anyone answer?
Re: A little question about SetPVar and GetPVar -
Retardedwolf - 11.09.2010
It will work. But if a player disconnects it will reset.