25.03.2013, 17:15
You're most welcome!
Basically, the code will loop through the maximum amount of vehicles that the server will save (which can be defined by "MAX_SAVED_VEHICLES"). It formats a quick string so it can take each ID and make a string which you can use to check if the file exists. If the file exists [with the specified ID], it will continue with the loop. If the file [with the specified ID] doesn't exist, it will stop the loop and return the ID that's open.
Basically, the code will loop through the maximum amount of vehicles that the server will save (which can be defined by "MAX_SAVED_VEHICLES"). It formats a quick string so it can take each ID and make a string which you can use to check if the file exists. If the file exists [with the specified ID], it will continue with the loop. If the file [with the specified ID] doesn't exist, it will stop the loop and return the ID that's open.