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

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    Class[playerid] = classid;
    SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,944.99,-41.64,1001.77);
    SetPlayerFacingAngle(playerid,180.0);
    SetPlayerCameraPos(playerid,944.69,-47.54,1001.12);
    SetPlayerCameraLookAt(playerid,944.99,-41.64,1001.77);
    SetPlayerTeamFromClass(playerid, classid);
    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;
}
Код:
D:\SAMP\Server\gamemodes\****.pwn(349) : error 002: only a single statement (or expression) can follow each "case"
D:\SAMP\Server\gamemodes\*****.pwn(349) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
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: 2 Guest(s)