19.08.2009, 20:10
I've been getting this error:
Here's my code:
Any help is appreciated...
Thanks,
Luisinho
Код:
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
Код:
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;
}
Thanks,
Luisinho

