26.04.2013, 15:32
This works:
The mistake is in doing '+', which doesn't works. It's '+=' which means current value + 1. You can also use '++' for doing +1 only and '--' for -1.
#Late post..
pawn Код:
forward RobBank(playerid);
public RobBank(playerid)
{
new rand = random(130000)+0;
new string[64];
GivePlayerMoney(playerid,rand);
format(string,sizeof string,"Your robbed $%d from the Bank",rand);
SendClientMessage(playerid, -1, string);
PlayerInfo[playerid][pRobberies] += 1; // error line
SendClientMessage(playerid, COLOR_GREEN, "You Rob the bank and now have 3 wanted level!");
TogglePlayerControllable(playerid,1);
return 1;
}
#Late post..