Well, I think Pawn has gone crazy
#3

Comparing floats like this is risky, theres a rounding error in certain circumstances, so you got 100.000001 instead of 100.0. Better compare rounded values.

if(floatround(hp) != floatround(Health[playerid]) || floatround(ap) != floatround(Armour[playerid])) AddBan(playerid, RPN(playerid), "Anti Cheat", "Health Hacking", RPIP(playerid));
Reply


Messages In This Thread
Well, I think Pawn has gone crazy - by NeXoR - 30.10.2016, 22:50
Re: Well, I think Pawn has gone crazy - by Kaliber - 30.10.2016, 23:29
Re: Well, I think Pawn has gone crazy - by Mauzen - 30.10.2016, 23:37
Re: Well, I think Pawn has gone crazy - by NeXoR - 31.10.2016, 01:48

Forum Jump:


Users browsing this thread: 1 Guest(s)