AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   DBi module ? (https://forums.alliedmods.net/showthread.php?t=128621)

ÜnLoCo 06-03-2010 07:08

DBi module ?
 
( 35) Load fails: Module/Library Class "dbi" required for plugin. Check modules.ini.

is something like dbi_amxx.dll supposed to be in the modules folder ?
what is missing ?
thanks !

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <dbi>

#define PLUGIN "Sqltest"
#define VERSION "1.0"
#define AUTHOR "UnLoCo"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
testsql()
}


public 
testsql()
{
    
//Create a connection
    
new Sql:mysql dbi_connect("localhost""root""pass""dbase")
 
//If the connection is less than 1, it is bad    
    
if (mysql SQL_OK) {
        new 
err[255]
        new 
errNum dbi_error(mysqlerr254)
        
server_print("error1: %s|%d"errerrNum)
        return 
1
    
}
 
    
server_print("Connection handle: %d"mysql)



ÜnLoCo 06-03-2010 07:20

Re: DBi module ?
 
ok i've just manually enabled "mysql" in the modules.ini
and it worked !

Sylwester 06-03-2010 07:26

Re: DBi module ?
 
Use sqlx (threader queries) instead of dbi.

ÜnLoCo 06-03-2010 07:27

Re: DBi module ?
 
[TUT] SQLx - the newest AMXX SQL driver set (advantages and usage)

this one
Thank You


All times are GMT -4. The time now is 05:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.