How to remove all vehicles from the script?
#9

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
Antonio,clarencecuzz. To loop all vehicles, I think, this is the loop :
pawn Код:
for(new i=1;i<=MAX_VEHICLES;i++)
as vehicle ids start from 1?
Also, how did you know that there exist native IsValidVehicle(vehicleid);? and that isn't included(called,defined) in a_samp include?
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)