24.05.2012, 12:51
In this cmd,
I have a one error..
That is this line:
Код:
CMD:kupizeton(playerid, params[]) { if (IsPlayerInRangeOfPoint(playerid, 3,1023.6085,-889.9498,44.0966)) { if(PlayerInfo[playerid][pZeton] == 3) { SendClientMessage(playerid, COLOR_GREY, "**Nemozete imati vese od 3 zetona!"); return 1; } if(GetPlayerMoney(playerid) < 49) { SendClientMessage( playerid, COLOR_GREY, "**Nemate dovoljno novca zeton kosta 50$!"); return 1; } GivePlayerCash(playerid, -50) PlayerInfo[playerid][pZeton] += 1; SendClientMessage( playerid, COLOR_GREY, "**Mozete kupiti vise zetona, da se nebi vracali na kasu."); SendClientMessage(playerid, COLOR_WHITE, "Kupili ste zeton."); return 1; } else { SendClientMessage(playerid, COLOR_GREY, "**Niste kod Kase za kupovinu zetona!"); return 1; } }
Код:
error 001: expected token: ";", but found "-identifier-"
Код:
PlayerInfo[playerid][pZeton] += 1;