Raised This Month: $ Target: $400
 0% 

DBi module ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ÜnLoCo
Member
Join Date: Dec 2009
Location: 35.77N, 10.82E
Old 06-03-2010 , 07:08   DBi module ?
Reply With Quote #1

( 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)

__________________

Last edited by ÜnLoCo; 06-03-2010 at 07:13.
ÜnLoCo is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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