MAX_VEHICLES Question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MAX_VEHICLES Question (
/showthread.php?tid=464675)
MAX_VEHICLES Question -
AphexCCFC - 18.09.2013
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.
Re: MAX_VEHICLES Question -
Grimrandomer - 18.09.2013
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
Re: MAX_VEHICLES Question -
AphexCCFC - 18.09.2013
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?