Ajuda com o GM
#1

pawn Код:
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33205) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33205) : error 033: array must be indexed (variable "cmd")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33276) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33275) : warning 203: symbol is never used: "lidx"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33516) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33516) : error 033: array must be indexed (variable "tmp")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33539) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33539) : error 033: array must be indexed (variable "tmp")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33565) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33565) : error 033: array must be indexed (variable "tmp")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33918) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33918) : error 033: array must be indexed (variable "tmp")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33925) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(33925) : error 033: array must be indexed (variable "tmp")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34450) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34450) : error 033: array must be indexed (variable "tmp")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34488) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34488) : error 033: array must be indexed (variable "tmp")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34524) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34524) : error 033: array must be indexed (variable "tmp")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34564) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34564) : error 033: array must be indexed (variable "tmp")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34588) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34588) : error 033: array must be indexed (variable "tmp")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34610) : error 017: undefined symbol "strtok"
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34610) : error 033: array must be indexed (variable "tmp")
C:\Users\pc\Desktop\Server 0.3d(1)\Server 0.3d\gamemodes\BVOv7.pwn(34662) : error 017: undefined symbol "strtok"

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


26 Errors.

Peguei o BVO e converti-o para O.3e e aconteceu-me isso.
ajuda?
Reply
#2

Vocк deve ter deixado alguma funзгo aberta.
Reply
#3

e deve estar mais o menos pela linha 33205?

peguei na ediзгo do meu amigo, que na versao anterior nao tem nenhum warning e/ou error e quando compilei, deu-me varios tambem
Reply
#4

Fim do GameMode!:
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

nada :/
Reply
#6

entao deve ser pq o codigo esta add duas vezes
PHP код:
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;

procure por isso e apague
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)