Ok...
Hi
So... i try to create a sqlite database in my local server. So... this is my code:
PHP Code:
out_void public xt_database_init( in_char dbname[] )
{
var_char dbnoext[20] = EMPTY;
substr( dbname, dbnoext, 0, strpos( dbname, '.' ) );
SQL_SetAffinity( "sqlite" );
gg_databasehandle = SQL_MakeDbTuple( "", "", "", dbnoext );
SQL_ThreadQuery( gg_databasehandle, "xt_database_check_query",
"CREATE TABLE IF NOT EXISTS server_options\
(\
id INT NOT NULL PRIMARY KEY,\
value INT NOT NULL\
)" );
}
And... it flush me error:
Code:
L 07/12/2013 - 00:53:40: [myplugin.amxx] 2003 : Can't connect to MySQL server on 'localhost' (10061)
What's wrong? Why is it trying to connect to mysql server not sqlite?
PS: I forgot to add this...
PHP Code:
#define var_char new
#define out_void
#define in_char
And... substr and strpos definition...