SA-MP Forums Archive
1 ERROR { CASE } - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 1 ERROR { CASE } (/showthread.php?tid=622025)



1 ERROR { CASE } - RedRex - 17.11.2016

What the hell of this error


Код:
error 002: only a single statement (or expression) can follow each "case"
PHP код:
    case 24,25://PRO
        
{
            if(
classid == 230 || classid == 231 || classid == 232)
            {
                
GameTextForPlayer(playerid"~r~RPO",800,6);
            }
            
SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
            
SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
            
SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
            
SetPlayerFacingAngle(playerid,122.4500);
            
SetPlayerColor(playeridCOLOR_GREY);
            new 
scorecheck GetPlayerScore(playerid);
            if(
scorecheck 15000)
            {
                 
GameTextForPlayer(playerid,"~r~Locked!",25004);
                 return 
1;
            }
            else if(
scorecheck >= 15000)
            {
                 
GameTextForPlayer(playerid,"~g~Welcome To Pro Team",25004);
            }
            return 
1;
      }
    return 
1;




Re: 1 ERROR { CASE } - setes7 - 17.11.2016

I guess you're missing a bracket...