01.07.2016, 19:13
Do I have to mention that you re-open the file 2000 times?
You better have an iterator (foreach/y_iterate) and add the "index" to it so you can loop through existed vehicles only. You might as well use GetVehiclePoolSize()-1 but be careful with that.
Last, check if the file was opened successfully before trying to write to it to prevent server crashes.
You better have an iterator (foreach/y_iterate) and add the "index" to it so you can loop through existed vehicles only. You might as well use GetVehiclePoolSize()-1 but be careful with that.
Last, check if the file was opened successfully before trying to write to it to prevent server crashes.