Damage bug
#5

You're setting player's health to a negative value. If you want to decrease player's health then you do GetPlayerHealth first then set player's health to returned value - amount.
Like this:
Код:
new Float:health;

GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health - 50);
EDIT: 3 people were faster than me lol.
Reply


Messages In This Thread
Damage bug - by AndreiWow - 18.01.2017, 12:42
Re: Damage bug - by renatog - 18.01.2017, 12:54
Re: Damage bug - by Lordzy - 18.01.2017, 12:55
Re: Damage bug - by Injury - 18.01.2017, 12:55
Re: Damage bug - by GoldenLion - 18.01.2017, 12:55
Re: Damage bug - by AndreiWow - 18.01.2017, 13:04

Forum Jump:


Users browsing this thread: 1 Guest(s)