SA-MP Forums Archive
[HELP] Switching scriptfiles/users, to a SQL db - 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: [HELP] Switching scriptfiles/users, to a SQL db (/showthread.php?tid=342364)



[HELP] Switching scriptfiles/users, to a SQL db - Oscii - 13.05.2012

Hello..

Im just wondering if its easy or how do i like.. convert scriptfiles/users

To a SQL database..?



Re: [HELP] Switching scriptfiles/users, to a SQL db - Jonny5 - 13.05.2012

well its not easy, but not hard!
Youll have to write a function that reads all user ini files
and inserts them into your db,
then youll have to write code to load/save to db
you can use Sqlite without the need for a database server also as its built in to samp server.


Re: [HELP] Switching scriptfiles/users, to a SQL db - Oscii - 13.05.2012

"you can use SQLlite without the need for a database server also as its built in to samp server."

How do i do that?


Re: [HELP] Switching scriptfiles/users, to a SQL db - Oscii - 13.05.2012

Anyone?


Re: [HELP] Switching scriptfiles/users, to a SQL db - ReneG - 13.05.2012

Read the documentation for SQLite. SQLite is easier to use and is already coded into sa-mp.
https://sampwiki.blast.hk/wiki/SQLite