SA-MP Forums Archive
Save all player stats in a .txt file - 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: Save all player stats in a .txt file (/showthread.php?tid=176005)



Save all player stats in a .txt file - Ribber - 11.09.2010

So, I made my top 10 stats in a .txt file, and read them via PHP.
Now a question is this good, or is MySQL better?
I heard that when I use mysql there is often a memory leak, and the top 10 works good.
I also made the banlist with a .txt file and I split the ban file in sites (?page=2 etc)


Re: Save all player stats in a .txt file - ••• ĤБĶБM ••• - 11.09.2010

Quote:
Originally Posted by Ribber
Посмотреть сообщение
So, I made my top 10 stats in a .txt file, and read them via PHP.
Now a question is this good, or is MySQL better?
I heard that when I use mysql there is often a memory leak, and the top 10 works good.
I also made the banlist with a .txt file and I split the ban file in sites (?page=2 etc)
MySQL is always recommended in any way. As I might warn you with something, make sure to create a Anti SQL-INJECT! Or hackers can be able to access to your players information, and be able to edit their own characters information, etc.

Basically, I recommend MySQL, just add protection to it. Good luck, mate!


AW: Save all player stats in a .txt file - Ribber - 11.09.2010

Thanks.
Where do you mean the protection, in PHP or in MySQL (in the script)?