Not Working Function
#2

pawn Код:
randfloat(max){
  new tmp = random(max*1000); //1000 gives back %.3f, 100 gives back %.2f and so on
  new result = floatdiv(float(tmp), 1000.0);
  return result;
}
I think this should work, but I didn't test it.
Reply


Messages In This Thread
Not Working Function - by Kyle - 19.08.2010, 09:14
Re: Not Working Function - by [HUN]Jaki - 19.08.2010, 09:22
Re: Not Working Function - by Kyle - 19.08.2010, 09:28
Re: Not Working Function - by [HUN]Jaki - 19.08.2010, 09:29
Re: Not Working Function - by Kyle - 19.08.2010, 09:30
Re: Not Working Function - by [HUN]Jaki - 19.08.2010, 09:34

Forum Jump:


Users browsing this thread: 2 Guest(s)