10.01.2012, 21:45
In my experience, when adding to the value of a PVar, you need to first retrieve the current value, then add the value you're trying to add (that could get confusing). Here's an example:
Instead of doing this:
or perhaps this:
you need to do this:
That's one of the various reasons I tend not to use PVar's for values that are accessed very often.
Instead of doing this:
pawn Код:
SetPVarInt(playerid, "(...)", Value++);
pawn Код:
SetPVarInt(playerid, "(...)", GetPVarInt(playerid, "(...)")++);
pawn Код:
SetPVarInt(playerid, "(...)", GetPVarInt(playerid, "(...)")+iValue);