15.02.2013, 02:08
Basically, doing this:
... is the same as doing this:
So, you would basically need to change every line like this:
to this:
So, your code...
Could easily become:
NOTE: The variable names you use in PVars (i.e. "Money") are case sensitive. So, MONEY, is not equal to Money. I would recommend to make everything a CAPITAL variable, just to be on the safe side.
pawn Код:
SetPVarInt(playerid, "Money", 100);
pawn Код:
PlayerInfo[playerid][pMoney] = 100;
pawn Код:
PlayerInfo[playerid][pMoney]++;
pawn Код:
SetPVarInt(playerid, "Money", GetPVarInt(playerid, "Money")++);
pawn Код:
PlayerInfo[i][pCash] -= cost;
pawn Код:
SetPVarInt(playerid, "Money", GetPVarInt(playerid, "Money") - cost);

