I'm having doubts on how to use the 2 affinities at the same time, it may be that I have misunderstood when reading the include.
PHP Code:
/* Sublime AMXX Editor v2.2 */
#include <amxmodx>
#include <sqlx>
#pragma defclasslib sqlite sqlite
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Author"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
SQL_SetAffinity("sqlite")
new aff[15]
SQL_GetAffinity(aff, charsmax(aff))
server_print("Driver = %s", aff) // Printed Driver = sqlite
set_task(2.0, "ChangeDriver")
}
public ChangeDriver()
{
SQL_SetAffinity("sqlx")
new aff[15]
SQL_GetAffinity(aff, charsmax(aff))
server_print("Driver = %s", aff) // Printed Driver = sqlite
}
__________________