How to remove all vehicles from the script?
#10

Quote:
Originally Posted by antonio112
Посмотреть сообщение
Does it matter if the count starts from 0 or 1 ? It checks if the vehicle is valid or not and then removes it, so it doesn't matter 0 or 1.

I knew about IsValidVehicle from wiki: https://sampwiki.blast.hk/wiki/IsValidVehicle

But, you can also do something like, check vehicle model, see if it's > 0 and if that's true, the vehicle is valid.
Your loop won't check last vehicle( i= MAX_VEHICLES). I know, there is low possibility that there will be number of vehicles that reaches the limit, but it is still a mistake xD. Thank your for answer.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)