GetPVarInt
#2

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
}
Reply


Messages In This Thread
GetPVarInt - by jaskiller - 14.01.2012, 16:30
Re: GetPVarInt - by Scenario - 14.01.2012, 16:38
Re : GetPVarInt - by jaskiller - 14.01.2012, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)