[Ajuda] Erro ao atualizar includes 0.3d para 0.3e
#1

Код:
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BWE.pwn(2640) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(2641) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(2642) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(2643) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(2644) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(2645) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(2646) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(2655) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(2656) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(2657) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(2654) : warning 204: symbol is assigned a value that is never used: "index"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3261) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3261) : error 033: array must be indexed (variable "cmd")
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3484) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3484) : error 033: array must be indexed (variable "tmp")
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3522) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3522) : error 033: array must be indexed (variable "tmp")
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3528) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3528) : error 033: array must be indexed (variable "tmp")
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3565) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3565) : error 033: array must be indexed (variable "tmp")
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3586) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3586) : error 033: array must be indexed (variable "tmp")
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3655) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3655) : error 033: array must be indexed (variable "tmp")
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3686) : error 017: undefined symbol "strtok"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BMP.pwn(3686) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
alguem pode me ajudar ?
nгo sei oq й strok й uma include que esta faltando ?
Reply
#2

Final 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
#3

deu 4erro amigo
Quote:

C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BWE.pwn(671 : warning 202: number of arguments does not match definition
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BWE.pwn(11402) : error 017: undefined symbol "set"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BWE.pwn(11409) : error 017: undefined symbol "set"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BWE.pwn(15505) : error 017: undefined symbol "StrToInt"
C:\Users\Zй & Jaki\Downloads\•Brasil Mundo Perfeito [BMP]•\BMP\gamemodes\BWE.pwn(1552 : error 017: undefined symbol "StrToInt"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Reply
#4

Linhas
//6718 tmp = strtok(cmdtext, idx, strlen(cmdtext));
//11402 set(nome, tmp);
//11409 set(cor1,tmp);
//15505 dini_IntSet(string, "Cor1", StrToInt(inputtext));
//15528 dini_IntSet(string, "Cor2", StrToInt(inputtext));
Reply
#5

Strtok sу tem 2 parametros e voce esta usando 3.
Reply
#6

Final do code.
pawn Код:
stock StrToInt(string[])
{
    return strval(string);
}
stock set(dest[],source[])
{
    new count = strlen(source);
    new i=0;
    for (i=0;i<count;i++)
    {
        dest[i]=source[i];
    }
    dest[count]=0;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)