SA-MP Forums Archive
Case Help - 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: Case Help (/showthread.php?tid=632661)



Case Help - silverms - 17.04.2017

I'm getting this error error 040: duplicate "case" label (value 5)
on this code
PHP код:
    case RCP_TCAR:
        {
            if(
IsPlayerInAnyVehicle(playerid))
            {
                
SendClientMessage2(playeridCOLOR_YELLOW"You Found Your Car");
                
DisablePlayerRaceCheckpoint(playerid);
                
gPlayerRaceCheckpointStatus[playerid] = 0;
            }
        } 
why plz help thnx


Re: Case Help - Toroi - 17.04.2017

That means the value of RCP_TCAR is the same as the value of any of the other cases. Look for the RCP_TCAR definition and change its value there for one you're not using.


Re: Case Help - silverms - 17.04.2017

done thank u