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=437027)



error 025: function heading differs from prototype - radiobizza - 13.05.2013

How to fix this error?:S
PHP код:
gamemodes\gf.pwn(1666) : error 025: function heading differs from prototype
gamemodes
\gf.pwn(21899) : error 025: function heading differs from prototype 
And the lines:
1666:
PHP код:
forward split(const strsrc[], strdest[][], delimiter); 
21899
PHP код:
public split(const strsrc[], strdest[][], delimiter



Re: error 025: function heading differs from prototype - Kwarde - 13.05.2013

You probably have another forward split() somewhere in your script. Search for "forward split(" and see if you can find anything.
If you don't find anything, try to look in the includes you are using.


Re: error 025: function heading differs from prototype - RedForceFT - 14.05.2013

verify if you have
Quote:

forward split

defined elsewhere in your script. Also,you can verify this and in your includes.i hope that i helped to fix your error :P
Verifica functia de mai sus daca o mai ai definita in GM, sau intr-un include pe care il folosesti. Sper ca te-am ajutat.


Re: error 025: function heading differs from prototype - radiobizza - 14.05.2013

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
You probably have another forward split() somewhere in your script. Search for "forward split(" and see if you can find anything.
If you don't find anything, try to look in the includes you are using.
Quote:
Originally Posted by RedForceFT
Посмотреть сообщение
verify if you have defined elsewhere in your script. Also,you can verify this and in your includes.i hope that i helped to fix your error :P
Verifica functia de mai sus daca o mai ai definita in GM, sau intr-un include pe care il folosesti. Sper ca te-am ajutat.
I don't have.


Re: error 025: function heading differs from prototype - MP2 - 14.05.2013

You have split() defined SOMEWHERE. Possibly in an include.


Re: error 025: function heading differs from prototype - Kwarde - 14.05.2013

@radiobizza:
Now I told that split is defined (forwarded) somewhere else, and that it also might be in an include.
RedForceFT told the same.
MP2 told the same.
This is the only solution I can possibly think off, because the headings are the same! You should really check every include, and check includes for other includes too .
If you can't figure it out, you may (if you trust me off course) send all your files to me (excluded samp-server.exe, server.cfg and such files) to kwarde@mail.com and I could take a look at it


Re: error 025: function heading differs from prototype - PT - 14.05.2013

something like this:

pawn Код:
forward split(const strsrc[], strdest[], delimiter);  

public split(const strsrc[], strdest[], delimiter)
?

@edit i saw my error now


Re: error 025: function heading differs from prototype - Kwarde - 14.05.2013

@PT: No wtf?
It is:

forward callback(parameters);
public callback(parameters)
{
//The stuff
}


instead of

forward callback(parameters);
public callback(parameters);

Perhaps you should learn a little bit of PAWN before trying to suggest something?


Re: error 025: function heading differs from prototype - radiobizza - 14.05.2013

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
@radiobizza:
Now I told that split is defined (forwarded) somewhere else, and that it also might be in an include.
RedForceFT told the same.
MP2 told the same.
This is the only solution I can possibly think off, because the headings are the same! You should really check every include, and check includes for other includes too .
If you can't figure it out, you may (if you trust me off course) send all your files to me (excluded samp-server.exe, server.cfg and such files) to kwarde@mail.com and I could take a look at it
I will see ...


Re: error 025: function heading differs from prototype - radiobizza - 14.05.2013

In my gamemode this show:
[20:01:45] [profiler] Attached profiler to 'gamemodes\gfsql.amx' (no debug symbols)
[20:01:45] Error: Function not registered: 'mysql_fetch_row_format'
[20:01:45] Error: Function not registered: 'mysql_retrieve_row'
[20:01:45] Error: Function not registered: 'mysql_fetch_field_row'
[20:01:45] Script[gamemodes/gfsql.amx]: Run time error 19: "File or function is not found"
[20:01:45] Number of vehicle models: 0