SA-MP Forums Archive
SQLite - connection with one dbs in two scripts - 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: SQLite - connection with one dbs in two scripts (/showthread.php?tid=622797)



SQLite - connection with one dbs in two scripts - TheRohlikar - 26.11.2016

Hello,

is there any chance to connect to a file ("users.db") from two F-scripts ?
Because whenever I do it, it just doesn't work...


Thank you, very much.

EXPLANATION...
first script - "OnFilterScriptInit" -> connect, if doesn't exists, create ["shitty= db_open("users/users.db");"]
second script - OnFilterScriptInit -> connect (same) ["shitty= db_open("users/users.db");"]


Re: SQLite - connection with one dbs in two scripts - TheRohlikar - 26.11.2016

Or should I use MySQL to fix that ?


Re: SQLite - connection with one dbs in two scripts - Vince - 26.11.2016

You could try storing the connection handle in a property or SVar.