14.01.2012, 16:38
I'm not exactly sure and it isn't listed on the Wiki. You could do something like this though:
pawn Код:
if(!GetPVarType(playerid, "varname")) // checking if "varname" doesn't exist
{
SetPVarInt(playerid, "varname", value); // it doesn't, let's set the PVar
}
else // ... but if it does
{
new iValue = GetPVarInt(playerid, "varname"); // obtain the value of the PVar and store it into a variable
}