Rounding a certain float.
#1

I have a variable for the players Health.
(PlayerInfo[playerid][Health]).

It loads perfectly when they log in, however, when they take damage, this happens:


I've tried using floatround, but that doesn't work.
floatround(PlayerInfo[playerid][Health] -= floatround(amount));

I've never really used floatround so please let me know if I'm using it incorrectly.
Reply


Messages In This Thread
Rounding a certain float. - by BleverCastard - 05.09.2015, 13:07
Re: Rounding a certain float. - by fordawinzz - 05.09.2015, 13:10
Re: Rounding a certain float. - by Freezo - 05.09.2015, 13:13
Re: Rounding a certain float. - by BleverCastard - 05.09.2015, 13:16
Re: Rounding a certain float. - by xVIP3Rx - 05.09.2015, 13:56
Re: Rounding a certain float. - by BleverCastard - 05.09.2015, 14:17
Re: Rounding a certain float. - by KrazyKidd - 05.09.2015, 18:35
Re: Rounding a certain float. - by BleverCastard - 06.09.2015, 11:59
Re: Rounding a certain float. - by xVIP3Rx - 06.09.2015, 13:27
Re: Rounding a certain float. - by BleverCastard - 07.09.2015, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)