Guten Tag ich wollte mal fragen was der Code Macht
Code
public OnMysqlError(error[], errorid, MySQL:handle)
{
if(errorid==2006)
{
mysql_close(handle);
handle = mysql_init(LOG_ONLY_ERRORS,1);
mysql_connect(dbhost,dbuser,dbpw,dbdb,handle);
SendClientMessageToAll(COLOR_BRIGHTRED,"Error: 2006.");
format(string,sizeof(string),"MySQL Error! msg: \"%s\", error id: %i, connection: %i.", error, errorid, _:handle);
strLog("my_errors.txt",string);
}
format(string,sizeof(string),"MySQL Error! msg: \"%s\", error id: %i, connection: %i.", error, errorid, _:handle);
strLog("my_errors.txt",string);
return 1;
}
Alles anzeigen
Danke für jede Antwort