GetClosestVehicle(...) is not working
#5

Quote:
Originally Posted by Sibuscus
Посмотреть сообщение
This is my new for loop and it's still not working, I get 17 instead of 0 now. I have a total of 16 vehicles placed on my server
Код:
for(new i = 1; i < MAX_VEHICLES; i++)
As I said, vehicles IDs start from 1. This means, 16 vehicles with IDs starting from 1 to 17. There is no vehicle with ID 0.

You can use /dl in-game for testing purposes to see if the closest vehicle printed is the one closer to you.
Reply


Messages In This Thread
[SOLVED]GetClosestVehicle(...) is not working - by Sibuscus - 29.06.2018, 18:20
Re: GetClosestVehicle(...) is not working - by Calisthenics - 29.06.2018, 18:25
Re: GetClosestVehicle(...) is not working - by Uvais - 29.06.2018, 18:29
Re: GetClosestVehicle(...) is not working - by Sibuscus - 29.06.2018, 18:33
Re: GetClosestVehicle(...) is not working - by Calisthenics - 29.06.2018, 18:36
Re: GetClosestVehicle(...) is not working - by Lokii - 29.06.2018, 18:56

Forum Jump:


Users browsing this thread: 1 Guest(s)