What are pVars?
#1

can smbody tell me the use of pVars? with an example....
Reply
#2

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
Reply
#3

i dont understand can you explain me on msn?
Reply
#4

sure pyrokar@libero.it
Reply
#5

i already have you in my contacts =P
Reply
#6

PVars save a certain string, float or integer so you can use them later on. Thats everything about PVars
Reply
#7

This is like:

new Variable[MAX_PLAYERS];

But PVar do not null in OnPlayerDisconnect.
Reply
#8

how do you null them then?
Reply
#9

Sets an integer to a player variable.

https://sampwiki.blast.hk/wiki/SetPVarInt
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)