SA-MP Forums Archive
[AJUDA] Alguйm pode me ajudar ? - 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] Alguйm pode me ajudar ? (/showthread.php?tid=289482)



[AJUDA] Alguйm pode me ajudar ? - ._DubSteP[SK] - 11.10.2011

Estou com esses Errors ao Compilar meu GM, se alguйm puder me ajudar eu agradeзo muuuito, Obrigado.


Код:
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(798) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(799) : error 010: invalid function or declaration
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(4267) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(4268) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(4269) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(4270) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(4271) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(4272) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(4273) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(4282) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(4283) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(4284) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(4281) : warning 204: symbol is assigned a value that is never used: "index"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5012) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5012) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5073) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5073) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5115) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5115) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5441) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5441) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5479) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5479) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5485) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5485) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5522) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrador\Desktop\Brasil Games\gamemodes\CidadeDaLei.pwn(5522) : error 033: array must be indexed (variable "tmp")



Re: [AJUDA] Alguйm pode me ajudar ? - ViniBorn - 11.10.2011

Acrescente isso no 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] Alguйm pode me ajudar ? - LuizGustavo - 11.10.2011

Linhas?


Re: [AJUDA] Alguйm pode me ajudar ? - ReDKiiL - 11.10.2011

Coloke No Fim 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] Alguйm pode me ajudar ? - ._DubSteP[SK] - 11.10.2011

Consegui resolver uns erros agora sу restam estes 2, oque fasso ? :/
Код:
C:\Documents and Settings\Administrador\Desktop\CidadeDaLei.pwn(799) : error 052: multi-dimensional arrays must be fully initialized
C:\Documents and Settings\Administrador\Desktop\CidadeDaLei.pwn(21370) : error 030: compound statement not closed at the end of file (started at line 21250)



Re: [AJUDA] Alguйm pode me ajudar ? - ceesar90 - 11.10.2011

Quote:
Originally Posted by ._DubSteP[SK]
Посмотреть сообщение
Consegui resolver uns erros agora sу restam estes 2, oque fasso ? :/
Код:
C:\Documents and Settings\Administrador\Desktop\CidadeDaLei.pwn(799) : error 052: multi-dimensional arrays must be fully initialized
C:\Documents and Settings\Administrador\Desktop\CidadeDaLei.pwn(21370) : error 030: compound statement not closed at the end of file (started at line 21250)
O segundo erro й que faltou fechar algo com um { por exemplo.
o primeiro erro, tem como mandar as linhas ao menos cara?