SA-MP Forums Archive
[AJUDA] Erro Aki Alguem ajuda - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Erro Aki Alguem ajuda (/showthread.php?tid=311308)



[AJUDA] Erro Aki Alguem ajuda - 4LiSs0N - 15.01.2012

pawn Код:
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(365) : error 017: undefined symbol "strtok"
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(365) : error 033: array must be indexed (variable "cmd")
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(1836) : error 017: undefined symbol "strtok"
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(1836) : error 033: array must be indexed (variable "tmp")
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(1838) : error 017: undefined symbol "strtok"
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(1838) : error 033: array must be indexed (variable "tmp")
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(1967) : error 017: undefined symbol "strtok"
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(1967) : error 033: array must be indexed (variable "tmp")
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(1978) : error 017: undefined symbol "strtok"
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(1978) : error 033: array must be indexed (variable "txt")
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(2025) : error 017: undefined symbol "strtok"
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(2025) : error 033: array must be indexed (variable "cmd")
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(2096) : error 017: undefined symbol "strtok"
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(2096) : error 033: array must be indexed (variable "tmp")
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(2105) : error 017: undefined symbol "strtok"
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(2105) : error 033: array must be indexed (variable "tmp")
C:\Users\Alisson\Desktop\Server Teste\gamemodes\[DNB]Sv.pwn(364) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


16 Errors.
Galera sei lah entrei no meu GM ai dei F5 deu esses erros

Linhas
Quote:

365 > cmd = strtok(cmdtext, idx);
1836 > tmp = strtok(cmdtext, idx);
1838>tmp = strtok(cmdtext, idx);
1967>tmp = strtok(cmdtext,idx);
1978> txt = strtok(cmdtext,idx);
2025>cmd = strtok(cmdtext, idx);
2096>tmp = strtok(cmdtext, idx);
2105>tmp = strtok(cmdtext, idx);




Re: [AJUDA] Erro Aki Alguem ajuda - Dolby - 16.01.2012

Vocк provavelmente nгo tem a Strtok, e quanto ao resto,poste as linhas para facilitar.


Re: [AJUDA] Erro Aki Alguem ajuda - Miqueias Barros - 16.01.2012

Final do gm
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;
}



Re: [AJUDA] Erro Aki Alguem ajuda - 4LiSs0N - 16.01.2012

O vlw Miqueias