[AJUDA] Erros
#1

Se alguem puder Ajudar Agradeзo.

Код:
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(23327) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(23327) : error 033: array must be indexed (variable "cmd")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(23431) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(23431) : error 033: array must be indexed (variable "tmp")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(23463) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(23463) : error 033: array must be indexed (variable "tmp")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(23469) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(23469) : error 033: array must be indexed (variable "tmp")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(23481) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(23481) : error 033: array must be indexed (variable "tmp")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27230) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27230) : error 033: array must be indexed (variable "tmp")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27294) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27294) : error 033: array must be indexed (variable "tmp")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27331) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27331) : error 033: array must be indexed (variable "tmp")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27367) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27367) : error 033: array must be indexed (variable "tmp")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27396) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27396) : error 033: array must be indexed (variable "tmp")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27442) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27442) : error 033: array must be indexed (variable "tmp")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27453) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27453) : error 033: array must be indexed (variable "tmp")
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27474) : error 017: undefined symbol "strtok"
C:\Users\Jorge\Desktop\SAMP 0.3c\gamemodes\BBG3.pwn(27474) : error 033: array must be indexed (variable "tmp")

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


26 Errors.
Reply
#2

Adiciona isso no final do teu script:

pawn Код:
stock 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;
}
Reply
#3

Use the definition LOL

pawn Код:
stock 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;
}
:')
Reply
#4

Vlws na verdade peguei outro gm pra ver.

Vi o erro e troquei por isso, agora vim ver ses falaram igual kk.

Mais vlw pela ajuda
Reply
#5

Da prуxima, verifique outros scripts (como vocк disse que viu outro gm) antes de postar no fуrum, isso evita tуpicos inъteis e ajuda a бrea PT-BR ficar mais organizada
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)