undefined symbol "strtok"
#2

Add this to your script:

pawn Code:
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


Messages In This Thread
undefined symbol "strtok" - by thefatshizms - 23.05.2012, 21:52
Re: undefined symbol "strtok" - by spedico - 23.05.2012, 21:53
Re: undefined symbol "strtok" - by thefatshizms - 23.05.2012, 21:57
Re: undefined symbol "strtok" - by AsulKapa - 03.09.2013, 22:28
Re: undefined symbol "strtok" - by DanishHaq - 03.09.2013, 22:29
Respuesta: undefined symbol "strtok" - by Elcheto1999 - 25.01.2017, 21:58

Forum Jump:


Users browsing this thread: 2 Guest(s)