undefined symbol "strtok"
#9

Quote:
Originally Posted by *ToM*
Посмотреть сообщение
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;
}
put this somewhere in your script (below includes)
I was getting 8 errors until i used this. Thanks Rep added!
Reply


Messages In This Thread
undefined symbol "strtok" - by xLowrider - 03.12.2009, 12:43
Re: undefined symbol "strtok" - by *ToM* - 03.12.2009, 12:54
Re: undefined symbol "strtok" - by xLowrider - 03.12.2009, 22:23
Re: undefined symbol "strtok" - by Grim_ - 03.12.2009, 22:27
Re: undefined symbol "strtok" - by xLowrider - 03.12.2009, 22:29
Re: undefined symbol "strtok" - by Leo_Johnson - 26.09.2011, 08:01
Re: undefined symbol "strtok" - by AceFlyer - 26.09.2011, 09:03
Re: undefined symbol "strtok" - by [MWR]Blood - 26.09.2011, 09:05
Re: undefined symbol "strtok" - by Swisher - 14.01.2014, 01:06

Forum Jump:


Users browsing this thread: 2 Guest(s)