[Ajuda] Erros na compilaзгo
#1

Alguem pode me ajudar com esses erros? nao sei oque й ^^ vlw!

Код:
\gamemodes\visk.pwn(23393) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(23393) : error 033: array must be indexed (variable "cmd")
 \gamemodes\visk.pwn(23484) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(23484) : error 033: array must be indexed (variable "tmp")
 \gamemodes\visk.pwn(23810) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(23810) : error 033: array must be indexed (variable "tmp")
 \gamemodes\visk.pwn(23879) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(23879) : error 033: array must be indexed (variable "tmp")
 \gamemodes\visk.pwn(23917) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(23917) : error 033: array must be indexed (variable "tmp")
 \gamemodes\visk.pwn(24052) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(24052) : error 033: array must be indexed (variable "tmp")
 \gamemodes\visk.pwn(24084) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(24084) : error 033: array must be indexed (variable "tmp")
 \gamemodes\visk.pwn(24160) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(24160) : error 033: array must be indexed (variable "tmp")
 \gamemodes\visk.pwn(24222) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(24222) : error 033: array must be indexed (variable "lolhai")
 \gamemodes\visk.pwn(24433) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(24433) : error 033: array must be indexed (variable "tmp")
 \gamemodes\visk.pwn(24484) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(24484) : error 033: array must be indexed (variable "x_kitvip")
 \gamemodes\visk.pwn(24586) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(24586) : error 033: array must be indexed (variable "x_nr")
 \gamemodes\visk.pwn(25055) : error 017: undefined symbol "strtok"
 \gamemodes\visk.pwn(25055) : error 033: array must be indexed (variable "PrisonCam")
Linhas:
Код:
(23393) cmd = strtok(cmdtext, idx);
(23484) tmp = strtok(cmdtext, idx);
(23810) tmp = strtok(cmdtext,idx);
(23879) tmp = strtok(cmdtext, idx);
(23917) tmp = strtok(cmdtext, idx);
(24052) tmp = strtok(cmdtext, idx);
(24084) tmp = strtok(cmdtext, idx);
(24160) tmp = strtok(cmdtext, idx);
(24222) lolhai = strtok(cmdtext, idx);
(24433) tmp = strtok(cmdtext, idx);
(24484) x_kitvip = strtok(cmdtext, idx);
(24586) x_nr = strtok(cmdtext, idx);
(25055) PrisonCam = strtok(cmdtext, idx);
Reply
#2

sua stock do "strtok" , deve tar bugada ._.
Reply
#3

Bom tava olhando nos topicos... ai vi que tinha q add
Код:
 
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;
}
adicionei isso e compilo certinho ^^ mas vlw!
qualquer coisa eu posto aqui de volta
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)