Strange errors
#1

Quote:

D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(24930) : error 021: symbol already defined: "strtok"
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(24945) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26002) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26041) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(2604 : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26121) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26233) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26303) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26333) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26363) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26481) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26692) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26701) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26729) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26753) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(27179) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(27922) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28273) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28282) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28351) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28360) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28505) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28543) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28589) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28786) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28851) : 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.

wtf is that -.-
Reply
#2

You already got strtok defined, so delete one of them. And the other error, show us the error lines
Reply
#3

line 26041 : tmp = strtok(cmdtext, idx);
line 28589 : tmp = strtok(cmdtext, idx);

they the same - how to make strtok not defined ?
Reply
#4

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;
}
If im right, you got 2 of those. Delete one of them
Reply
#5

no...
Reply
#6

try to add
pawn Код:
#undef strtok
to top of ur GM
Reply
#7

Quote:

D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(43) : error 017: undefined symbol "strtok"
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(43) : error 010: invalid function or declaration
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(24932) : error 021: symbol already defined: "strtok"
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(24947) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26004) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26043) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26050) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26123) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26235) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26305) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26335) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26365) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26483) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26694) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26703) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26731) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(26755) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(27181) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(27924) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28275) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28284) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28353) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28362) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28507) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28545) : error 047: array sizes do not match, or destination array is too small
D:\NEXTEV~1\GAMEMO~1\NE-RP.pwn(28591) : 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.

that happened..
Reply
#8

Try to remove the strtok from this line 24930
Reply
#9

My Pawno Crashed :O
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)