18.12.2009, 20:10
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:
Here's the method I use:
Код:
new Float: PlHealth; GetPlayerHealth(playerid, PlHealth); new MathsFlaw = floatround(PlHealth, floatround_ceil); SetPlayerHealth(playerid, MathsFlaw+1);