Need Help About Death - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need Help About Death (
/showthread.php?tid=176654)
Need Help About Death -
xinix000 - 14.09.2010
deleted :::
Re: Need Help About Death -
Mauzen - 14.09.2010
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)
Re: Need Help About Death -
xinix000 - 14.09.2010
i change it into if(health != 0.0) but it still kick ??
Re: Need Help About Death -
DarrenReeder - 14.09.2010
if you have got
if(health != 0.0)...
then if the players health is NOT equal to 0, they will be kicked...although this is running through all the players in the server so it will mean anyone in the server with above 0 or Less than 0 hp, will be kicked...
When is this getting called?
Re: Need Help About Death -
xinix000 - 14.09.2010
Deleteed ::