floats with random
#5

pawn Код:
new randfuel = minrand(25,100);
CarFuel[v] = float(randfuel); // This sets the fuel
or

pawn Код:
stock Float:minrand(min, max)
{
    return float(random(max-min))+float(min);
}
CarFuel[v] = minrand(25,100);
Reply


Messages In This Thread
floats with random - by Kar - 28.07.2010, 18:52
Re: floats with random - by Jonni8 - 28.07.2010, 18:58
Re: floats with random - by Kar - 28.07.2010, 19:00
Re: floats with random - by ikey07 - 28.07.2010, 19:11
Re: floats with random - by Jefff - 28.07.2010, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)