24.02.2009, 19:18
Hey all i was busy coloring skins and i had an error
Script:
Now this is the error:
line 366 is:
If i remove the 120 it works fine but as long as it is on it doesnt work.. anyone got an idea ??
GrTz.
Script:
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, 154.3292,-1944.7362,4.2207);
SetPlayerInterior(playerid, 0);
switch(gClass[playerid])
{
// Grove Street
case 269 | 270 | 271 | 0:
{
SetPlayerColor(playerid, COLOR_GREEN);
}
// Ballas
case 163 | 102 | 103 | 104:
{
SetPlayerColor(playerid, COLOR_PURPLE);
}
// Varios Los Aztecas
case 166 | 114 | 115 | 116:
{
SetPlayerColor(playerid, COLOR_LIGHTGREEN);
}
// Los Santos Vagos
case 17 | 108 | 109 | 110:
{
SetPlayerColor(playerid, COLOR_YELLOW);
}
// Hitman
case 113 | 117 | 118 | 120:
{
SetPlayerColor(playerid, COLOR_BLACK);
}
}
return 1;
}
Код:
reeroam.pwn(366) : error 040: duplicate "case" label (value 127) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
case 113 | 117 | 118 | 120:
GrTz.

