HELP!
#7

Quote:
Originally Posted by xemper
Посмотреть сообщение
@XoX I've putted on top of my script, but I still get the error. :S

Anyways the line that the error comes on is at the first {
Erase this code and compile:

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;
}
I hope that i have helped
Reply


Messages In This Thread
HELP! - by xemper - 13.02.2011, 11:34
Re: HELP! - by Luis- - 13.02.2011, 11:59
Re: HELP! - by xemper - 13.02.2011, 12:43
Re: HELP! - by XoX - 13.02.2011, 12:48
Re: HELP! - by xemper - 13.02.2011, 13:23
Re: HELP! - by XoX - 13.02.2011, 13:25
Re: HELP! - by rjjj - 13.02.2011, 13:25
Re: HELP! - by xemper - 13.02.2011, 13:30
Re: HELP! - by rjjj - 13.02.2011, 13:32
Re: HELP! - by TouR - 13.02.2011, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)