What are pVars? - 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: What are pVars? (
/showthread.php?tid=235333)
What are pVars? -
THE_KNOWN - 05.03.2011
can smbody tell me the use of pVars? with an example....
Re: What are pVars? -
iJumbo - 05.03.2011
Its the same use of a player variable like
pawn Код:
new PlayerConnects[MAX_PLAYERS];
in pvar u dont have 2 make the new just only in your script
pawn Код:
SetPvarInt(playerid,"PlayerConnects",the number u want to insert);
and this return your numbers
pawn Код:
GetPvarInt(playerid,"PlayerConnects");
more help here
Re: What are pVars? -
THE_KNOWN - 05.03.2011
i dont understand can you explain me on msn?
Re: What are pVars? -
iJumbo - 05.03.2011
sure
pyrokar@libero.it
Re: What are pVars? -
THE_KNOWN - 05.03.2011
i already have you in my contacts =P
Re: What are pVars? -
alpha500delta - 05.03.2011
PVars save a certain string, float or integer so you can use them later on. Thats everything about PVars
Re: What are pVars? -
OKStyle - 05.03.2011
This is like:
new Variable[MAX_PLAYERS];
But PVar do not null in OnPlayerDisconnect.
Re: What are pVars? -
THE_KNOWN - 05.03.2011
how do you null them then?
Re: What are pVars? -
HyperZ - 05.03.2011
Sets an integer to a player variable.
https://sampwiki.blast.hk/wiki/SetPVarInt
AW: Re: What are pVars? -
Nero_3D - 05.03.2011
Quote:
Originally Posted by OKStyle
This is like:
new Variable[MAX_PLAYERS];
But PVar do not null in OnPlayerDisconnect.
|
Quote:
Originally Posted by THE_KNOWN
how do you null them then?
|
They get delete after OnPlayerDisconnect so you still can use them there
just read that page ->
Per-player variable system