Error in compilation
#1

My GM with few errors this could help me?

Errors :
Код:
C:\Users\CASA\Desktop\Brasil Hard Life\gamemodes\BTW2.pwn(20106) : error: 021: symbol already defined: "strtok"
Код:
C:\Users\CASA\Desktop\Brasil Hard Life\gamemodes\BTW2.pwn(20119) : error: 047: array sizes do not match, or destination array is too small

Who can help me I will be grateful
Reply
#2

Lines :

Код:
strtok(const string[], &index)
{   // here <<
    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; // Here <<
}
Reply
#3

Help ? ¬¬'
Reply
#4

Don't bump after 15 minutes..

For the first error you either already have that function in the script or you have it in an include. The function can be found in 'gl_common.inc' so if you included that file in the script remove the function.
That should also fix the second error.
Reply
#5

Quote:
Originally Posted by YoYo123
Посмотреть сообщение
Don't bump after 15 minutes..

For the first error you either already have that function in the script or you have it in an include. The function can be found in 'gl_common.inc' so if you included that file in the script remove the function.
That should also fix the second error.
Even given the 2 errors !
Reply
#6

Help ?
Reply
#7

'-' Help - me
Reply
#8

Help help help help
Reply
#9

delete strok function, it's already on your gamemode somewhere twice.
Reply
#10

Quote:
Originally Posted by TheArcher
Посмотреть сообщение
delete strok function, it's already on your gamemode somewhere twice.
Cara worked kkk deleted at the end of GM, and was compiled with Success


Thank You
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)