GetPlayerHealth problem?
#1

Hello. I set my health with "SetPlayerHealth(playerid, 9999.0)" and then I check if my health is less then 100 with
Код:
new Float:pHealth;
GetPlayerHealth(playerid, Float:pHealth);
if (pHealth < 100.0) return SendClientMessage(playerid, COLOR_RED, "You must be at full health to use this.");
And fore some reason it returns that message, even though my health is "9999.0"! And then, when I set it to "99999.0" it's OK! What's the deal?
Reply


Messages In This Thread
GetPlayerHealth problem? - by exclide1 - 04.07.2013, 14:39
Re: GetPlayerHealth problem? - by Antonio144 - 04.07.2013, 14:52
Re: GetPlayerHealth problem? - by exclide1 - 04.07.2013, 14:58
Respuesta: Re: GetPlayerHealth problem? - by Gryphus One - 04.07.2013, 15:24
Re: GetPlayerHealth problem? - by exclide1 - 04.07.2013, 15:29

Forum Jump:


Users browsing this thread: 2 Guest(s)