05.08.2010, 00:28
Hi, I am making a vehicle system when I just realised that I have no idea how I am going to resolve this issue:
When you create a vehicle, it gets the vehicle ID and stores it as the title of the file. So vehicle ID 30 will be 30.ini in the Vehicles folder in scriptfiles. So, lets say I remove vehicle ID 29, meaning the old vehicle ID 30 will move to ID 29 on the server restart. It will be looking for the information from the 29.ini although all the info is saved in 30.ini. How could I resolve this so the vehicles ID will always be the same as its file title?
If this confuses you I will explain it simpler if need be.
All help is appreciated.
-Conroy
When you create a vehicle, it gets the vehicle ID and stores it as the title of the file. So vehicle ID 30 will be 30.ini in the Vehicles folder in scriptfiles. So, lets say I remove vehicle ID 29, meaning the old vehicle ID 30 will move to ID 29 on the server restart. It will be looking for the information from the 29.ini although all the info is saved in 30.ini. How could I resolve this so the vehicles ID will always be the same as its file title?
If this confuses you I will explain it simpler if need be.
All help is appreciated.
-Conroy