Problem while setting health - 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)
+--- Thread: Problem while setting health (
/showthread.php?tid=423312)
Problem while setting health -
Jstylezzz - 17.03.2013
Hi All,
I'm experiencing this weird problem, when I loaded and created a car from my MYSQL database, it works, until I set the health. The car just starts burning, even though the print's I added in the script show that the health variable is 100.0.
Is there any condition for setting health (I have the same problem when setting the player's health from a variable, which also prints 100.0, but sets the player's health to 0).
Thanks in advance
Re: Problem while setting health -
Misiur - 17.03.2013
Max vehicle health is 1000.0, under ~300.0 it'll burn then explode
#e: about player health - what field type are you using, and how does your retrieving code looks like?
Re: Problem while setting health -
Jstylezzz - 17.03.2013
Quote:
Originally Posted by Misiur
Max vehicle health is 1000.0, under ~300.0 it'll burn then explode
#e: about player health - what field type are you using, and how does your retrieving code looks like?
|
-.-' Thanks, I should have known :P
About the player health, I debugged it again, and I noticed I didn't apply my anticheat health well, so that was most likely the case.
Thanks for helpin' me out