error 025: function heading differs from prototype
#1

I really need help with this. I've been searching but I haven't been getting any solution.
The only error I get when I compile.
Quote:

error 025: function heading differs from prototype

the code is ..
Quote:

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;

Reply
#2

Your function parameters are not the same, as in your forward.

which mysql-plugin are u using? at mysql r7, it should be:
pawn Код:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle){
     // code
}
Reply
#3

Quote:
Originally Posted by Sharpadox
Посмотреть сообщение
Your function parameters are not the same, as in your forward.

which mysql-plugin are u using? at mysql r7, it should be:
pawn Код:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle){
     // code
}
I fixed this but right now it's giving me a problem where whenever I log into my server, it just says login, I tried with so many different names, it never tells me to register, where as on my local server it tells me to register, it acts as if it has the account registered already..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)