SA-MP Forums Archive
Help! With anti money cheat. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help! With anti money cheat. (/showthread.php?tid=416530)



Help! With anti money cheat. - California_ - 17.02.2013

Hi this is my anti money cheat


pawn Код:
forward GivePlayerMoneyEx(playerid,ammount);
public GivePlayerMoneyEx(playerid,ammount)
{
     
      OldMoney[playerid] = GetPlayerMoney(playerid)
      NewMoney[playerid] = ammount; //The error seems to be over here <
      GivePlayerMoney(playerid,ammount);

      return 1;
}
This is the error Im getting.

pawn Код:
error 001: expected token: ";", but found "-identifier-"



Re: Help! With anti money cheat. - dusk - 17.02.2013

pawn Код:
OldMoney[playerid] = GetPlayerMoney(playerid);
You forgot ";" at the end