random
#3

Using a switch is an easy way to detect that.
pawn Код:
new debug = random(12);
switch(random(12))
{
    case 0...5: format(string, 92, "%s press the button and it show number %d, which color is %s.", GetPlayerNameEx(playerid), debug);
    case 6...12: format(string, 92, "%s press the button and it show number %d, which is black.", GetPlayerNameEx(playerid), debug);
}
Reply


Messages In This Thread
random - by tooMuch - 30.01.2015, 18:53
Re: random - by Schneider - 30.01.2015, 19:04
Re: random - by CalvinC - 30.01.2015, 19:06
Re: random - by tooMuch - 30.01.2015, 19:07
Re: random - by tooMuch - 30.01.2015, 19:35
Re: random - by CalvinC - 30.01.2015, 19:49
Re: random - by tooMuch - 30.01.2015, 20:30
Re: random - by tooMuch - 30.01.2015, 20:46

Forum Jump:


Users browsing this thread: 3 Guest(s)