24.08.2012, 17:34
I've posted this in the mysql plugin topic, but I didn't get any help there.
Quote:
[13 16:14:18]Error id 2013: Lost connection to MySQL server during query('SELECT 1 FROM `Account` WHERE `Xp`>0 AND `IP`='SOME_IP_HERE'') I get a few of these errors everyday. In R6, I could fix it using this: pawn Code: public OnQueryError(errorid, error[], callback[], query[], connectionHandle) { if(errorid==CR_SERVER_LOST) mysql_query(query); } But now, in R7, I can't, because there are additional parameters, that I can't get with this callback(like playerid). Any ideas on how to fix this? Note: I have mutex disabled, because I think it caused some random crashes earlier. Note2: I connect to mysql using the external IP, not 127.0.0.1. That way, I can test my gamemode on my local pc. |