Hello everyone HElp mee [++REP]
#4

Use a switch.
Here's an example that will choose randomly between giving 1000, 2000 or 3000.
pawn Код:
switch(random(2))
{
    case 0: GivePlayerMoney(playerid, 1000);
    case 1: GivePlayerMoney(playerid, 2000);
    case 2: GivePlayerMoney(playerid, 3000);
}
Reply


Messages In This Thread
Hello everyone HElp mee [++REP] - by arlindi - 30.01.2015, 17:52
Re: Hello everyone HElp mee [++REP] - by CalvinC - 30.01.2015, 18:08
Re: Hello everyone HElp mee [++REP] - by arlindi - 30.01.2015, 18:09
Re: Hello everyone HElp mee [++REP] - by CalvinC - 30.01.2015, 18:11
Re: Hello everyone HElp mee [++REP] - by arlindi - 30.01.2015, 18:18
Re: Hello everyone HElp mee [++REP] - by CalvinC - 30.01.2015, 18:28
Re: Hello everyone HElp mee [++REP] - by BeesSi - 30.01.2015, 18:29
Re: Hello everyone HElp mee [++REP] - by arlindi - 30.01.2015, 18:34
Re: Hello everyone HElp mee [++REP] - by CalvinC - 30.01.2015, 18:42
Re: Hello everyone HElp mee [++REP] - by arlindi - 30.01.2015, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)