03.03.2010, 14:02
No1 knows how to fix those errors: ??
Line 601 - 634
I'd really appreciate if you cut! ![Cheesy](images/smilies/biggrin.png)
-Naxix
Код:
(601) : error 002: only a single statement (or expression) can follow each "case" (601 -- 602) : error 028: invalid subscript (not an array or too many subscripts): "current" (601 -- 603) : error 001: expected token: "}", but found "switch" (601 -- 603) : fatal error 107: too many error messages on one line
Код:
if(current == Pistolsmenu) { switch(row) { case 0: { if(GetPlayerMoney(playerid) > 999) { GivePlayerWeapon(playerid,22,50); GivePlayerMoney(playerid,-1000); SendClientMessage(playerid,COLOUR_YELLOW,"Bought a 9mm"); return 1; } else { SendClientMessage(playerid,COLOUR_RED,"You can't afford a 9mm"); return 1; } } case 1: { if(GetPlayerMoney(playerid) > 999) { GivePlayerWeapon(playerid,23,50); GivePlayerMoney(playerid,-1000); SendClientMessage(playerid,COLOUR_YELLOW,"Bought a Silenced 9mm"); return 1; } else { SendClientMessage(playerid,COLOUR_RED,"You can't afford a Silenced 9mm"); return 1; } }
![Cheesy](images/smilies/biggrin.png)
-Naxix