( 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(PLUGIN, VERSION, AUTHOR)
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(mysql, err, 254)
server_print("error1: %s|%d", err, errNum)
return 1
}
server_print("Connection handle: %d", mysql)
}
__________________