How should I do this?
#10

So, you should change your function to:
PHP код:
CMD:test(playeridparams[])
{
    new 
rand random(10);
    while(
rand == && boxVariables[1][boxMoney] != 0rand random(10);
// While rand is equal to 5 and box's money isn't equal to 0 - attribute to random a new value
    
while(rand == && boxVariables[1][boxVehicle] != 0rand 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)