Error 040
#1

I've been getting this error:
Код:
C:\Documents and Settings\Luis Ramos\Desktop\Cops & Robbers\gamemodes\san_fierro.pwn(121) : error 040: duplicate "case" label (value 0)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Here's my code:
Код:
public OnCheckpointEnter(playerid, checkpointid)
{
	switch(checkpointid)
	{
	  case SFPD_ENTRANCE:
	  {
			SetPlayerPos(playerid,246.3825,113.6706,1003.2188);
			SetPlayerInterior(playerid, 10);
			SendClientMessage(playerid, COLOR_MESSAGE, "Welcome to SFPD");
	  }
	  case SFPD_EXIT:
	  {
			SetPlayerPos(playerid,246.3825,113.6706,1003.2188);
			SetPlayerInterior(playerid, 0);
	  }
	}
	return 1;
}
Any help is appreciated...

Thanks,
Luisinho
Reply


Messages In This Thread
Error 040 - by Luisinho - 19.08.2009, 20:10
Re: Error 040 - by Correlli - 19.08.2009, 20:20
Re: Error 040 - by Luisinho - 19.08.2009, 20:25
Re: Error 040 - by Correlli - 19.08.2009, 20:45

Forum Jump:


Users browsing this thread: 1 Guest(s)