Not Working Function
#6

I forgot the "Float:"-s.
pawn Код:
Float:randfloat(max){
  new tmp = random(max*1000); //1000 gives back %.3f, 100 gives back %.2f and so on
  new Float:result = floatdiv(float(tmp), 1000.0);
  return Float:result;
}
Tested.
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: 1 Guest(s)