14.02.2011, 02:50
For some reason, I'm only getting case 0 (the first one) and never the second one.
Any ideas as to what's wrong?
Any ideas as to what's wrong?
pawn Код:
new route = random(2);
switch(route)
{
case 0:
{
GarbageRouteCount[playerid][0] = 1;
SetPlayerCheckpoint(playerid, GarbageRouteOne[0][0], GarbageRouteOne[0][1], GarbageRouteOne[0][2], 5.0);
SendClientMessage(playerid, COLOR_GREEN, "You have started your garbage route. Follow the checkpoints to recieve your pay.");
}
case 1:
{
GarbageRouteCount[playerid][1] = 1;
SetPlayerCheckpoint(playerid, GarbageRouteTwo[0][0], GarbageRouteTwo[0][1], GarbageRouteTwo[0][2], 5.0);
SendClientMessage(playerid, COLOR_GREEN, "You have started your garbage route. Follow the checkpoints to recieve your pay.");
}
}