Cars not saving?
#5

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.
Reply


Messages In This Thread
Cars not saving? - by MayaEU - 01.07.2016, 16:29
Re: Cars not saving? - by MayaEU - 01.07.2016, 17:28
Re: Cars not saving? - by Runn3R - 01.07.2016, 18:16
Re: Cars not saving? - by MayaEU - 01.07.2016, 19:04
Re: Cars not saving? - by Konstantinos - 01.07.2016, 19:13
Re: Cars not saving? - by MayaEU - 01.07.2016, 19:17
Re: Cars not saving? - by Konstantinos - 01.07.2016, 19:22
Re: Cars not saving? - by MayaEU - 01.07.2016, 19:31
Re: Cars not saving? - by Konstantinos - 01.07.2016, 19:39
Re: Cars not saving? - by MayaEU - 01.07.2016, 19:43

Forum Jump:


Users browsing this thread: 2 Guest(s)