One line | quick help
#1

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
Reply
#2

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;
}
Reply
#3

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.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)