SA-MP Forums Archive
[Ajuda] Erro na "strtok" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erro na "strtok" (/showthread.php?tid=508910)



Erro na "strtok" - LE4NDrO - 24.04.2014

Estou com esse erro :
pawn Код:
D:\GuetoBrasil.pwn(427) : error 021: symbol already defined: "strtok"
Linha : {

Comando Completo

pawn Код:
strtok(const string[], &index)
{ // aqui o erro
    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;
}



Re: Erro na "strtok" - JoaoPedro - 24.04.2014

Jб estб definida essa funзгo no seu gamemode