Error
#2

Missed a bracer "{" or "}". Always, undefined strtok. Add this, also:
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


Messages In This Thread
Error - by john501 - 20.01.2011, 23:30
Re: Error - by blackwave - 21.01.2011, 00:11
Re: Error - by john501 - 21.01.2011, 01:21
Re: Error - by john501 - 21.01.2011, 02:05

Forum Jump:


Users browsing this thread: 1 Guest(s)