sqlite in sqlx...
Ok...
Hi :) So... i try to create a sqlite database in my local server. So... this is my code: PHP Code:
Code:
L 07/12/2013 - 00:53:40: [myplugin.amxx] 2003 : Can't connect to MySQL server on 'localhost' (10061)PS: I forgot to add this... PHP Code:
|
Re: sqlite in sqlx...
Ok... i solve the problem. I write it... maybe it will be usefull for other people...
In one word... DAFUQ is this! In sqlx.inc ( cstrike/addons/amxmodx/scripting/include ), this lines load a mysql_amxx library, not sqlite_amxx PHP Code:
PHP Code:
|
Re: sqlite in sqlx...
You have to enable manually sqlite/mysql in modules.ini and then make some checks to see if the right module is loaded and call SQL_SetAffinity if SQL_GetAffinity does not returns what you want. Also after SQL_MakeDbTuple you should initiate the connection with SQL_Connect
|
Re: sqlite in sqlx...
Oh... it works too... Thanks :)
But... in SQL_ThreadQuery must I type handle from SQL_MakeDbTuple or from SQL_Connect? PS: Ok, I checked - from MakeDbTuple... so, for what I must use SQL_Connect? |
Re: sqlite in sqlx...
SQL_Connect returns connection handle. You would only need it for SQL_QuoteString or if you need to send non-threaded queries in plugin_end() or plugin_init().
|
Re: sqlite in sqlx...
Thank you for answer, now I know how it works :)
|
| All times are GMT -4. The time now is 06:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.