How can I loop trough all spawned vehicles in the server?
#3

Quote:
Originally Posted by Jelly23
Посмотреть сообщение
for( new c = 1; c <= MAX_VEHICLES; c ++ ) but i'd recommend foreach.
MAX_VEHICLES is the maximum amount of vehicles that are CURRENTLY SPAWNED in the server? Does it change every single time I spawn or despawn a car? How do I get the ID of vehicle c in the loop?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)