SetPVarInt
#2

pawn Код:
SetPVarInt(playerid, "tries", GetPVarInt(playerid, "tries") + 1);
Or you can use the function AddPVarInt

pawn Код:
AddPVarInt(playerid, "tries", 1);
Then you need this:

pawn Код:
stock AddPVarInt(playerid, varname[], int_value)
{
    SetPVarInt(playerid, varname, GetPVarInt(playerid, varname) + int_value);
}
Reply


Messages In This Thread
SetPVarInt - by GiS - 09.01.2011, 10:22
Re: SetPVarInt - by MadeMan - 09.01.2011, 10:27
Re: SetPVarInt - by GiS - 09.01.2011, 10:33

Forum Jump:


Users browsing this thread: 2 Guest(s)