Help with Health regen
#4

I'm sure that you can't use floats any more in SetPlayerHealth, use floatround() to round it and use an integer, I saw it on the wiki a while ago but it seems someone has edited that.

Here's the method I use:
Код:
new Float: PlHealth;
GetPlayerHealth(playerid, PlHealth);
new MathsFlaw = floatround(PlHealth, floatround_ceil);
SetPlayerHealth(playerid, MathsFlaw+1);
Reply


Messages In This Thread
Help with Health regen - by mister_ic3 - 17.12.2009, 13:21
Re: Help with Health regen - by admantis - 17.12.2009, 13:54
Re: Help with Health regen - by Vincent_r - 18.12.2009, 19:50
Re: Help with Health regen - by Calon - 18.12.2009, 20:10
Re: Help with Health regen - by Joe Staff - 18.12.2009, 20:11
Re: Help with Health regen - by Calon - 18.12.2009, 20:13
Re: Help with Health regen - by Vincent_r - 18.12.2009, 20:22
Re: Help with Health regen - by mister_ic3 - 20.12.2009, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)