[Ajuda] Problemas com strtok
#1

Entгo pessoal eu to tentando compilar meu GM de Zombie e ta dando um erro de strtok vou postar a linha de erro :

pawn Код:
tmp = strtok(cmdtext, idx);
Esse й o Erro da Dialog do F5 :
pawn Код:
undefined symbol "strtok"
Reply
#2

coloca no fim do GM / FS

pawn Код:
stock 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

Consegui vlw (:
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)