12.08.2010, 18:35
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..
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);