Help with...ehm floatround
#2

What variable type is p?

Also the floatround(); function doesn't actually store the final result in the variable, it returns the value instead. So it should be used like so, although I don't understand why you'd convert it to a float, so I recommend doing it like this if there's no other reason..

pawn Код:
new b;
b = m/20;
p = (b * 20);
Reply


Messages In This Thread
Help with...ehm floatround - by Sascha - 12.08.2010, 18:33
Re: Help with...ehm floatround - by JaTochNietDan - 12.08.2010, 18:35
Re: Help with...ehm floatround - by Sascha - 12.08.2010, 19:01
Re: Help with...ehm floatround - by JaTochNietDan - 12.08.2010, 19:03

Forum Jump:


Users browsing this thread: 1 Guest(s)