07.04.2013, 22:33
I have noticed that SetPlayerHealth actually rounds down the number, I might be wrong and it only happens to me for some reason.
Can someone please confirm that?
Can someone please confirm that?
This is correct. Even though SetPlayerHealth and GetPlayerHealth use floats, they will never use the numbers after the dot. The same is for the armour equivalents. The numbers are always rounded down.
Edit: With "rounded down", he means that if you do SetPlayerHealth(playerid, 50.7), the player health will be 50.0 and GetPlayerHealth will also return 50.0. |