Errors, help me please
#2

add this to your script

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;
}
Reply


Messages In This Thread
Errors, help me please - by duckie - 30.03.2011, 15:16
Re: Errors, help me please - by xir - 30.03.2011, 15:20
Re: Errors, help me please - by iJumbo - 30.03.2011, 15:20
Re: Errors, help me please - by duckie - 30.03.2011, 15:22
Re: Errors, help me please - by xir - 30.03.2011, 15:24
Re: Errors, help me please - by duckie - 30.03.2011, 15:25

Forum Jump:


Users browsing this thread: 1 Guest(s)