03.01.2012, 19:02
Quote:
error 040: duplicate "case" label (value 5) |
Solucionado Xd
Lo que quiere decir es que Repetiste un case.
Ejemplo.
pawn Код:
case ClassTrainDriver
{
Index = random(sizeof(ASpawnLocationsRoadWorker));
x = ASpawnLocationsRoadWorker[Index][SpawnX]; // Get the X-position for the spawnlocation
y = ASpawnLocationsRoadWorker[Index][SpawnY]; // Get the Y-position for the spawnlocation
z = ASpawnLocationsRoadWorker[Index][SpawnZ]; // Get the Z-position for the spawnlocation
Angle = ASpawnLocationsRoadWorker[Index][SpawnAngle]; // Get the rotation-angle for the spawnlocation
format(Msg, 128, "{00FF00}Player {FFFF00}%s{00FF00} joined {FFFF00}Roadworker class", Name);
}
case ClassTrainDriver:
{
Index = random(sizeof(ASpawnLocationsTrainDriver));
x = ASpawnLocationsTrainDriver[Index][SpawnX]; // Get the X-position for the spawnlocation
y = ASpawnLocationsTrainDriver[Index][SpawnY]; // Get the Y-position for the spawnlocation
z = ASpawnLocationsTrainDriver[Index][SpawnZ]; // Get the Z-position for the spawnlocation
Angle = ASpawnLocationsTrainDriver[Index][SpawnAngle]; // Get the rotation-angle for the spawnlocation
format(Msg, 128, "{00FF00}Player {FFFF00}%s{00FF00} joined {FFFF00}Train Driver class", Name);
}