11.07.2012, 19:41
Im trying to get the MYSQL plugin to work, and i get the following errors:
OnFilterScriptInit():
mysql_debug(1);
connection = mysql_connect("hostname","database","username","pa ss");
if(!mysql_ping())
{
print("[MYSQL]Connection Failed!");
}
else
{
print("[MYSQL]Connection Successful!");
}
OnPlayerConnect:
new string[128];
format(string,sizeof(string),"INSERT INTO test(test) VALUES('HI')");
mysql_function_query(connection,string, false, "OnQueryFinish", "siii");
Quote:
[15:42:16] >> mysql_query_callback( Connection handle: 0 ) [15:42:16] >> mysql_query_callback() - Invalid connection handle. (You set: 0, Highest connection handle ID is 0). |
mysql_debug(1);
connection = mysql_connect("hostname","database","username","pa ss");
if(!mysql_ping())
{
print("[MYSQL]Connection Failed!");
}
else
{
print("[MYSQL]Connection Successful!");
}
OnPlayerConnect:
new string[128];
format(string,sizeof(string),"INSERT INTO test(test) VALUES('HI')");
mysql_function_query(connection,string, false, "OnQueryFinish", "siii");