SA-MP Forums Archive
OnPlayerExitVehicle - 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: OnPlayerExitVehicle (/showthread.php?tid=107112)



OnPlayerExitVehicle - Jakku - 08.11.2009

Nevermind.


Re: OnPlayerExitVehicle - Karlip - 08.11.2009

try if(health < 24)


Re: OnPlayerExitVehicle - Finn - 08.11.2009

Are you sure 24 is the correct value, because the full vehicle health is 1000, not 100.


Re: OnPlayerExitVehicle - Jakku - 08.11.2009

Really? Thanks. Then it should be 240


Re: OnPlayerExitVehicle - Jakku - 08.11.2009

Quote:
Originally Posted by Karlip
try if(health < 24)
Then it says it everytime when I exit that vehicle. Cause health = bigger than 24


Re: OnPlayerExitVehicle - Karlip - 08.11.2009

Quote:
Originally Posted by Jakku
Quote:
Originally Posted by Karlip
try if(health < 24)
Then it says it everytime when I exit that vehicle. Cause health = bigger than 24
Wrong.

if(health < 24) means if the health is smaller than 24
but
if(health > 24) means if the health is bigger than 24
and
if(24 > health) means if 24 is bigger than health.