03.03.2011, 14:18
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"
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"