help me with errors.
#9

This should be:
pawn Код:
cmd = strtok(cmdtext, idx);

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
[HELP]me with errors. - by Astralis - 16.11.2011, 12:56
Re: help me with errors. - by Sascha - 16.11.2011, 12:59
Re: help me with errors. - by Kostas' - 16.11.2011, 12:59
Re: help me with errors. - by Astralis - 16.11.2011, 13:03
Re: help me with errors. - by Kostas' - 16.11.2011, 13:04
Re: help me with errors. - by Astralis - 16.11.2011, 13:05
Re: help me with errors. - by SmiT - 16.11.2011, 13:05
Re: help me with errors. - by Astralis - 16.11.2011, 13:07
Re: help me with errors. - by SmiT - 16.11.2011, 13:08
Re: help me with errors. - by Astralis - 16.11.2011, 13:13

Forum Jump:


Users browsing this thread: 1 Guest(s)