problem on compile
#2

Add
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;
}
to your script.
Reply


Messages In This Thread
problem on compile - by nati558866 - 09.01.2010, 15:42
Re: problem on compile - by SiJ - 09.01.2010, 15:43
Re: problem on compile - by nati558866 - 09.01.2010, 15:50
Re: problem on compile - by SiJ - 09.01.2010, 15:52
Re: problem on compile - by nati558866 - 09.01.2010, 15:56
Re: problem on compile - by SiJ - 09.01.2010, 16:03
Re: problem on compile - by nati558866 - 09.01.2010, 16:08

Forum Jump:


Users browsing this thread: 2 Guest(s)