SA-MP Forums Archive
very slow loading!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: very slow loading!! (/showthread.php?tid=540939)



haha fixed - Natric - 08.10.2014

fixed!


Re: very slow loading!! - Natric - 08.10.2014

fixed


Re: very slow loading!! - Emmet_ - 08.10.2014

It loads slow because you have two loops, the generic "for" loop running 20 times and the "while" loop. Assuming you have 332 lines in the file, 332 x 20 = 6640. One way to make it easier is to use SQLite or name each file independently (e.g. "veh_1.ini", "veh_2.ini").