MAX_VEHICLES Question
#1

Hello. Here is some detailed information I am trying to work out.
If you have a /sellvehicletomarket command and your database is as follows:

Vehicle ID 1 - MAX_VEHICLES ID 1
Vehicle ID 2 - MAX_VEHICLES ID 2
Vehicle ID 3 - MAX_VEHICLES ID 3
Vehicle ID 4 - MAX_VEHICLES ID 4

Say these are saved in a database and you sell a vehicle to the market and make Vehicle ID 1 get deleted from the database, it will then do this:

Vehicle ID 2 - MAX_VEHICLES ID 1
Vehicle ID 3 - MAX_VEHICLES ID 2
Vehicle ID 4 - MAX_VEHICLES ID 3

How is it possible to make the MAX_VEHICLES ID the same as the database vehicle ID's when one vehicle gets deleted? Confusing.
Reply
#2

You cant, vehicle ids are taken from 1 upwards filling the gaps.

I have the same issue, I have vehicles DB ID 256, and vin 200 for example
Reply
#3

Quote:
Originally Posted by Grimrandomer
Посмотреть сообщение
You cant, vehicle ids are taken from 1 upwards filling the gaps.

I have the same issue, I have vehicles DB ID 256, and vin 200 for example
If this is the case then how come MySQL based servers have /sellcartomarket commands and the functions for the remainder of the vehicles work perfect?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)