pVars
#3

SetPVar Int/String/Float(playerid, pvar, value);

playerid: The player id
pvar: for example "Money" or "Ammo" with "" !
value: The value to assign to that var

example:

SetPVarInt(playerid, "Money", GetPlayerMoney(playerid));

it's the same thing as

new Money[MAX_PLAYERS];
Money[playerid] = GetPlayerMoney(playerid);

But with PVars you don't have to declare with "new"
Reply


Messages In This Thread
pVars - by sim_sima - 03.03.2011, 13:07
Re: pVars - by Stigg - 03.03.2011, 13:17
Re: pVars - by Sasino97 - 03.03.2011, 14:18
Re: pVars - by sim_sima - 03.03.2011, 17:18
Re: pVars - by Mean - 03.03.2011, 17:31

Forum Jump:


Users browsing this thread: 3 Guest(s)