MySQL Error
#1

i use GodFather mode..

my gamemode was without errors, and when i put in my script MySQL, i have this 2 error!!


errors:
Код:
C:\Documents and Settings\Toni Bedy\Desktop\lecevica!!\gamemodes\maddoxgf.pwn(168) : error 025: function heading differs from prototype
C:\Documents and Settings\Toni Bedy\Desktop\lecevica!!\gamemodes\maddoxgf.pwn(7631) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
lines:
168:
Код:
forward split(const strsrc[], strdest[][], delimiter);
7631:
Код:
ppublic split(const strsrc[], strdest[][], delimiter)
{
	new i, li;
	new aNum;
	new len;
	while(i <= strlen(strsrc)){
	    if(strsrc[i]==delimiter || i==strlen(strsrc)){
	        len = strmid(strdest[aNum], strsrc, li, i, 128);
	        strdest[aNum][len] = 0;
	        li = i+1;
	        aNum++;
		}
		i++;
	}
	return 1;
}
Reply
#2

Код:
forward split(const strsrc[], strdest[][], delimiter);// add at top of script 
public split(const strsrc[], strdest[][], delimiter)
{
	new i, li;
	new aNum;
	new len;
	while(i <= strlen(strsrc)){
	    if(strsrc[i]==delimiter || i==strlen(strsrc)){
	        len = strmid(strdest[aNum], strsrc, li, i, 128);
	        strdest[aNum][len] = 0;
	        li = i+1;
	        aNum++;
		}
		i++;
	}
	return 1;
}
Reply
#3

nothing, this 2x"p" i write here, but in gamemode is only 1 "p"..

please help me people, i think that this is not so hard error!
Reply
#4

pawn Код:
forward split(const strsrc[], strdest[][], delimiter);// add at top of script
public split(const strsrc[], strdest[][], delimiter)
{
    new i, li;
    new aNum;
    new len;
    while(i <= strlen(strsrc)){
        if(strsrc[i]==delimiter || i==strlen(strsrc)){
            len = strmid(strdest[aNum], strsrc, li, i, 128);
            strdest[aNum][len] = 0;
            li = i+1;
            aNum++;
        }
        i++;
    }
    return 1;
}
put the public at the bottom of your script and put your forward at the top
Reply
#5

nothing different, again errors....

please help me, i really dont know where is problem
Reply
#6

Make sure you don't have the function in your script twice or in a include your using..
and you can just use it as a stock, thats how i have mine and it works fine.
Not entirely sure why your getting that error but it wouldn't hurt to check.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)