SA-MP Forums Archive
error 025: function heading differs from prototype - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 025: function heading differs from prototype (/showthread.php?tid=529208)



error 025: function heading differs from prototype - RayC - 01.08.2014

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;




Re: error 025: function heading differs from prototype - Sharpadox - 01.08.2014

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
}



Re: error 025: function heading differs from prototype - RayC - 01.08.2014

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..