[AJUDA] Alguйm pode me ajudar ?
#1

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")
Reply
#2

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;
}
Reply
#3

Linhas?
Reply
#4

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;
}
Reply
#5

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)
Reply
#6

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)