23.06.2013, 05:58
pawn Код:
if( MapChange == 0)
{
switch ( MapChange ) {
case 0:
{
new rand = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[rand][3]);
SetPlayerInterior(playerid, 15);
}
else if(MapChange == 1) // Line 172
{
switch ( MapChange ) {
case 0:
{
new rand = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[rand][3]);
SetPlayerInterior(playerid, 15);
GameTimer = SetTimer("GameTime",1000,1);}
}
}
}
Код:
(172): error 002: only a single statement (or expression) can follow each "case"