[Ajuda] 26 Erros
#1

Ola pessoal, eu tava tirando alguns muitos erros do meu gm mas sem querer fechei ele, quando abri denovo fiquei perdido e comeзou a dar aqueles 26 erros:
pawn Код:
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3558) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3559) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3560) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3561) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3562) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3563) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3564) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3565) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3566) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3567) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3568) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3569) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3570) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3571) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3572) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3573) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3574) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3575) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3576) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3577) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3578) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(3579) : warning 202: number of arguments does not match definition
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(4967) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(4968) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(4969) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(4970) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(4971) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(4972) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(4973) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(4974) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(13862) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(15315) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(19667) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(22379) : warning 213: tag mismatch
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25144) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25144) : error 033: array must be indexed (variable "cmd")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25155) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25155) : error 033: array must be indexed (variable "tmp")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25160) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25160) : error 033: array must be indexed (variable "tmp")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25222) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25222) : error 033: array must be indexed (variable "tmp")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25273) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25273) : error 033: array must be indexed (variable "tmp")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25279) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25279) : error 033: array must be indexed (variable "tmp")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25291) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(25291) : error 033: array must be indexed (variable "tmp")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27523) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27523) : error 033: array must be indexed (variable "tmp")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27560) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27560) : error 033: array must be indexed (variable "tmp")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27596) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27596) : error 033: array must be indexed (variable "tmp")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27625) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27625) : error 033: array must be indexed (variable "tmp")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27671) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27671) : error 033: array must be indexed (variable "tmp")
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27682) : error 017: undefined symbol "strtok"
D:\PCS-SAMP\Compiler\gamemodes\projetosa.pwn(27682) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Tem algum jeito de eu achar a } que falta de maneira mais facil? Sao 62 mil linhas de script :/


O mais impressionante й que so faltava 1 erro para mim terminar de arrumar, 1 erro!
Reply
#2

Tem uma ferramenta que localiza aonde falta, mais esqueci o nome ,rs.


@EDIT

https://sampforum.blast.hk/showthread.php?tid=171429
Reply
#3

pode ser string pequena de mais em alguns lugares
Reply
#4

tem algum tutorial de como usar ele roginho? em portugues de preferencia :/
Reply
#5

Vocк nгo se lembra qual a ъltima coisa que editou?
Й bem provбvel que o erro seja lб...
Reply
#6

Eu nгo lembro, pq tava arrumando os erros e nгo decorei as linhas

usei esse progama e me falou isso

MISSING BRACKET: The } bracket on line 54444 does not have a pair!
Result:
Opening angle brackets ({): 9498
Closing angle brackets (}): 9499
1 angle brackets without pair! Fix it!


fui nas linhas mas estava tudo certo :/
Reply
#7

Posta a funзгo em que o programa apontou...
Reply
#8

Coloca isso 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;
}
Espero ter ajudado
Reply
#9

ja tinha resolvido mas obrigado pela ajuda
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)