06.12.2009, 15:00
hi, im wondering how you can increase health like for example, you walk into a checkpoint and it gives you 5 more health, im trying to do this but it just sets to that health level
any help?
any help?
new oldhealth,newhealth; GetPlayerHealth(playerid,oldhealth); if(oldhealth<95) newhealth = oldhealth+5; else newhealth = 100; SetPlayerHealth(playerid,newhealth);
new Float:health; GetPlayerHealth(playerid,health);
if(health >= 95) SetPlayerHealth(playerid,100);
else SetPlayerHealth(playerid, floatround(health) + 5);
Originally Posted by GreenHammy
what is floataround, i get error with it :S
|