ERRORS :(
#1

WTF is that , I Can't fix it at all , please help me , please



Quote:

D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(24964) : error 021: symbol already defined: "strtok"
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(24979) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26036) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26075) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26082) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26155) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26267) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26337) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26367) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26397) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26515) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26726) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26735) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26763) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26787) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(27213) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(27956) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28307) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28316) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28385) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28394) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28539) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28577) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28623) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28820) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28885) : error 047: array sizes do not match, or destination array is too small

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

Everyline from that errors has "Strtock" word
Reply
#2

Remove / Comment ( /* )

pawn Код:
/*strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
 
    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}*/
from your gamemode. You are probably using include where it's already defined
Reply
#3

did that and same :

Quote:

}

/*strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}

new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}*/

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, 12;
strdest[aNum][len] = 0;
li = i+1;
aNum++;
}
i++;
}
return 1;
}


and that happened :

Quote:

D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26036) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26075) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26082) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26155) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26267) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26337) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26367) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26397) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26515) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26726) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26735) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26763) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26787) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(27213) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(27956) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28307) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28316) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28385) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28394) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28539) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28577) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28623) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28820) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28885) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28893) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28953) : error 047: array sizes do not match, or destination array is too small

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

Reply
#4

Show some of those lines. You are using too small array sizes..

Quote:

Error 047 - array sizes do not match, or destination array is too small:
For array assignment, the arrays on the left and the right side of the assignment operator must have the same number of dimensions.
In addition:

for multi-dimensional arrays, both arrays must have the same size;
for single arrays with a single dimension, the array on the left side of the assignment operator must have a size that is equal or bigger than the one on the right side.

When passing arrays to a function argument, these rules also hold for the array that is passed to the function (in the function call) versus the array declared in the function definition. When a function returns an array, all return statements must specify an array with the same size and dimensions.

Also using search will help im sure there is lot of topics about this error
Reply
#5

Line 27213 : tmp = strtok(cmdtext, idx);
Line 26337 : tmp = strtok(cmdtext, idx);


all are like this..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)