Need Help About Death
#2

The code looks (almost) okay, it is just a minor mistake. GetPlayerHealth returns the health as Float, but if you compare it to a non-point integer value it does not work as it should.
In short, just make the 0 a float:

if(health != 0.0)
Reply


Messages In This Thread
Need Help About Death - by xinix000 - 14.09.2010, 08:22
Re: Need Help About Death - by Mauzen - 14.09.2010, 09:17
Re: Need Help About Death - by xinix000 - 14.09.2010, 14:08
Re: Need Help About Death - by DarrenReeder - 14.09.2010, 15:01
Re: Need Help About Death - by xinix000 - 14.09.2010, 15:22

Forum Jump:


Users browsing this thread: 1 Guest(s)