Damage bug
#2

Cuz you're setting the player life to -2.0. If a player life is less than zero, he have to die.
If you're trying to subtract 2.0 from player life you have to use GetPlayerHealth first (same for armour) and store it in a Float:variable, then SetPlayerHealth(playerid, variable - 2.0);

Tip: Don't mix integers and floats, use (-2.0) instead of (-2).
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)