Not getting the other case?
#1

For some reason, I'm only getting case 0 (the first one) and never the second one.
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.");
                        }
                    }
Reply


Messages In This Thread
Not getting the other case? - by Antonio [G-RP] - 14.02.2011, 02:50
Re: Not getting the other case? - by cessil - 14.02.2011, 03:03
Re: Not getting the other case? - by Antonio [G-RP] - 14.02.2011, 03:09
Re: Not getting the other case? - by Krx17 - 14.02.2011, 06:14
Re: Not getting the other case? - by (SF)Noobanatior - 14.02.2011, 09:32
Re: Not getting the other case? - by Mokerr - 14.02.2011, 10:14
Re: Not getting the other case? - by Antonio [G-RP] - 14.02.2011, 21:23
Re: Not getting the other case? - by cessil - 14.02.2011, 22:37
Re: Not getting the other case? - by Mokerr - 15.02.2011, 05:28
Re: Not getting the other case? - by Antonio [G-RP] - 15.02.2011, 05:32

Forum Jump:


Users browsing this thread: 2 Guest(s)