06.05.2011, 02:18
just 1? 1 might just cause a mysql disconnection, i dont think it would've done all of that.. (BlueG's plugin)
for safer mysql mishaps
try
if '[Mysql Error] - Commands Out Of Sync For Thread ID: %d' happens, then the server crashes, then that thread is probably your problem
for safer mysql mishaps
try
pawn Код:
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle)
{
switch(errorid)
{
case CR_COMMAND_OUT_OF_SYNC:
{
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();
}
}
return 1;
}