Finding Next Available Number
#5

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
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.
Thanks for the fantastic explanation, looking at the code once more it seems to make a lot of sense, a lot more than I would have guessed!
Reply


Messages In This Thread
Finding Next Available Number - by nmader - 25.03.2013, 17:05
Re: Finding Next Available Number - by Scenario - 25.03.2013, 17:10
Re: Finding Next Available Number - by nmader - 25.03.2013, 17:13
Re: Finding Next Available Number - by Scenario - 25.03.2013, 17:15
Re: Finding Next Available Number - by nmader - 25.03.2013, 17:17
Re: Finding Next Available Number - by park4bmx - 25.03.2013, 17:29
Re: Finding Next Available Number - by Scenario - 25.03.2013, 17:34

Forum Jump:


Users browsing this thread: 1 Guest(s)