error 025: function heading differs from prototype
#1

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

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

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

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

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

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

something like this:

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

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

@edit i saw my error now
Reply
#8

@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?
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)