|
error 025: function heading differs from prototype |
|
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle) { new File:file = fopen("mysql_error_log.txt", io_append); if (file) { new string[512], day, month, year, hour, minute, second; gettime(hour, minute, second); getdate(year, month, day); format(string, sizeof(string), "[%02d/%02d/%02d %02d:%02d:%02d] Query error (errorid: %d, error: %s, callback: %s, connectionHandle: %d)\r\n", day, month, year, hour, minute, second, errorid, error, callback, connectionHandle); fwrite(file, string); fclose(file); } return 1; |
public OnQueryError(errorid, error[], callback[], query[], connectionHandle){
// code
}
|
Your function parameters are not the same, as in your forward.
which mysql-plugin are u using? at mysql r7, it should be: pawn Код:
|