SA-MP Forums Archive
Is it a good idea to... - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is it a good idea to... (/showthread.php?tid=159891)



Is it a good idea to... - Whizion - 14.07.2010

Save all players stats in a one huge .cfg file? 1 line = 1 player? Or no?


Re: Is it a good idea to... - marine - 14.07.2010

well actually its a .ini file. and what do you mean by 1 line??


Re: Is it a good idea to... - bigcomfycouch - 14.07.2010

No. To load one player's stats, you'd have to read the entire file above where that player's information is stored. Also, if something went wrong with file writing, you could (presumably) lose everyone's account.


Re: Is it a good idea to... - aNdReSk - 14.07.2010

I prefer 1 file per player, in case one player's file.. dont see how could u organize so many players in 1 single file o_o