Help converting to Random
#3

If you like, you can use this method:
Код:
new rand = random(5)+1;
               switch(rand)
               {
                case 1: GivePlayerMoney(playerid,5000);
                case 2: GivePlayerMoney(playerid,1000);
                case 3: GivePlayerMoney(playerid,6000);
                case 4: GivePlayerMoney(playerid,7000);
                case 5: GivePlayerMoney(playerid,100);
                default: GivePlayerMoney(playerid,20000);
               }
Reply


Messages In This Thread
Help converting to Random - by Sergeant - 21.03.2014, 19:58
Re: Help converting to Random - by azzerking - 21.03.2014, 20:57
Re: Help converting to Random - by Carxi - 21.03.2014, 21:07
Re: Help converting to Random - by azzerking - 21.03.2014, 22:42

Forum Jump:


Users browsing this thread: 1 Guest(s)