error 017: undefined symbol "strtok"
#2

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;
}
place this anywhere in your script.
Reply


Messages In This Thread
error 017: undefined symbol "strtok" - by Team_PRO - 31.01.2015, 00:21
Re: error 017: undefined symbol "strtok" - by Gangster-rocks - 31.01.2015, 00:49
Re: error 017: undefined symbol "strtok" - by icra - 31.01.2015, 00:50

Forum Jump:


Users browsing this thread: 1 Guest(s)