How should I do this?
#7

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
OH!
This is more simple.
PHP код:
CMD:test(playeridparams[])
{
    new 
rand random(10);
    while(
rand != 3rand random(10);
    
printf("Rand = %i"rand);

Yes! This is what I'm looking for.
Would this work?
Код:
CMD:test(playerid, params[])
{
	new rand = random(10);
	while(rand == 5 && boxVariables[1][boxMoney] == 0) rand = random(10);
	while(rand == 2 && boxVariables[1][boxVehicle] == 0) rand = random(10);
	return 1;
}
Reply


Messages In This Thread
How should I do this? - by danielpalade - 04.07.2016, 00:26
Re: How should I do this? - by Dayrion - 04.07.2016, 00:51
Re: How should I do this? - by danielpalade - 04.07.2016, 00:59
Re: How should I do this? - by Dayrion - 04.07.2016, 01:10
Re: How should I do this? - by danielpalade - 04.07.2016, 01:22
Re: How should I do this? - by Dayrion - 04.07.2016, 01:24
Re: How should I do this? - by danielpalade - 04.07.2016, 01:29
Re: How should I do this? - by Dayrion - 04.07.2016, 01:35
Re: How should I do this? - by danielpalade - 04.07.2016, 01:37
Re: How should I do this? - by Dayrion - 04.07.2016, 01:43

Forum Jump:


Users browsing this thread: 1 Guest(s)