17.07.2010, 01:46
(
Last edited by michael2572; 17/07/2010 at 05:33 PM.
)
Quote:
I have a slight problem here.
pawn Code:
Or am I missing something here? |
So,
5/2 = 2
Ceiling of 2 = 2.
You need to perform the division using floats, try this:
SetPlayerWantedLevel(playerid, floatround(floatval(level)/2.0, floatround_ceil));
(Make sure floatval's the right function, I can't remember the exact name but I'm pretty sure that's the one that returns a float from an int)