SA-MP Forums Archive
One line | quick help - 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: One line | quick help (/showthread.php?tid=415059)



One line | quick help - $mooth - 11.02.2013

C:\Users\Unknown\Desktop\MyGM\filterscripts\Admin. pwn(1113) : error 025: function heading differs from prototype

The line
Код:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
Whole code
1113-1118
Код:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
{
	printf("%d, %s, %s, %s, %d", errorid, error, callback, query, connectionHandle);
	return 1;
}
#endif



Re: One line | quick help - [MG]Dimi - 11.02.2013

pawn Код:
forward OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle);
Logically, your code must be
pawn Код:
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle)
{
    printf("%d, %s, %s, %s, %d", errorid, error, callback, query, connectionHandle);
    return 1;
}



Re: One line | quick help - DaRk_RaiN - 11.02.2013

EPIC FAIL.
What i was trying to say is make sure the forward doesn't differ the public
Btw it compiled fine for me, in this case you made two forwards.


Re: One line | quick help - $mooth - 11.02.2013

Didnt need to forward anything, my pawno seems to be "messed" up like the rest of my computer!

[MG]Dimi: After i downloaded all the includes again, and re-complied it, it worked. Thanks for your help

DaRk_RaiN: Glad i updated the topic now :P
Thanks for ur help aswell