06.08.2011, 05:34
oh sorry, that was on my windows test server, but otherwise forget that. The crashing is coming from the linux real host, whereas about atleast 13+ players are online when it happens
Edit: Didn't I post the query logs already... and this is my onqueryerror
as you can see.. the error with lost / gone_error are the ones that are being called..
Edit: Didn't I post the query logs already... and this is my onqueryerror
pawn Код:
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle)
{
switch(errorid)
{
case CR_COMMAND_OUT_OF_SYNC: {
mysql_free_result();
printf("[Mysql Error] - Commands Out Of Sync For Thread ID: %d", resultid);
}
case ER_UNKNOWN_TABLE: printf("[Mysql Error] - Unknown table '%s' in %s", error, query);
case ER_SYNTAX_ERROR: printf("[Mysql Error] - Something is wrong in your syntax, query: %s", query);
case CR_SERVER_GONE_ERROR: mysql_reconnect();
case CR_SERVER_LOST: mysql_reconnect();
case CR_SERVER_LOST_EXTENDED: mysql_reconnect();
}
if(errorid == CR_SERVER_LOST && resultid == THREAD_INITIATE_GROUPS) mysql_query("SELECT * FROM Groups", THREAD_INITIATE_GROUPS);
printf("EID: %d | Error: %s | Query: %s", errorid, error, query);
return 1;
}