error 002: only a single statement (or expression) can follow each "case"
#3

pawn Код:
switch(classid)
    {
    case 0:
    {
    GameTextForPlayer(playerid,"~w~CIVILIAN",1000,8);
    }
    case 1:
    {
    GameTextForPlayer(playerid,"~b~COP",1000,3);
    }
    case 2:
    {
    GameTextForPlayer(playerid,"~g~ARMY",1000,4);
    }
    case 3:
    {
    GameTextForPlayer(playerid,"~w~CIA",1000,3);
    }
    case 4:
    {
    GameTextForPlayer(playerid,"~P~MEDIC",1000,5);
    }
    }
    return 1;
}
^^
Missing a bracket.
Reply


Messages In This Thread
error 002: only a single statement (or expression) can follow each "case" - by _Khaled_ - 21.08.2012, 12:29
Re: error 002: only a single statement (or expression) can follow each "case" - by RanSEE - 21.08.2012, 12:33
Re: error 002: only a single statement (or expression) can follow each "case" - by clarencecuzz - 21.08.2012, 12:36

Forum Jump:


Users browsing this thread: 3 Guest(s)