21.08.2012, 12:29
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.