OnPlayerCrashVehicle
#6

Quote:
Originally Posted by Abagail
Посмотреть сообщение
This is inefficient all itself, and plain wrong. Just because the vehicle has lost 1000 health, does NOT mean the vehicle was crashed.

Ex:
- It could've been set by SetVehicleHealth.
- It could be because someone has attacked the vehicle.

It should be at-least worded right.

Anyway, the issue is you use this code:
pawn Код:
if(GetVehicleHealth(vehicleid) > 1000)
Which checks for higher, and not lower or even equal to. The correction would be:
pawn Код:
if(GetVehicleHealth(vehicleid) < 1000)
I dont know if you can read the post above urs, and the one above the above that stated thats itll be used for a "DMV Exam" so his code does the job for it.
Reply


Messages In This Thread
OnPlayerCrashVehicle - by HY - 21.11.2014, 18:55
Re: OnPlayerCrashVehicle - by awsomedude - 21.11.2014, 19:14
Re: OnPlayerCrashVehicle - by Evocator - 21.11.2014, 20:12
Re: OnPlayerCrashVehicle - by Abagail - 21.11.2014, 20:15
Re: OnPlayerCrashVehicle - by zT KiNgKoNg - 21.11.2014, 20:19
Re: OnPlayerCrashVehicle - by Evocator - 21.11.2014, 20:27
Re: OnPlayerCrashVehicle - by Abagail - 21.11.2014, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)