[Help]Got Errors while compile
#4

You forgot a closing bracket..
Try this one.
pawn Code:
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'm not sure it help anyway, try running a closing bracket program on the script.
Reply


Messages In This Thread
[Help]Got Errors while compile - by Leo_Johnson - 23.09.2011, 13:16
Re: [Help]Got Errors while compile - by Max_Coldheart - 23.09.2011, 13:18
Re: [Help]Got Errors while compile - by Leo_Johnson - 23.09.2011, 13:54
Re: [Help]Got Errors while compile - by Fat - 23.09.2011, 14:15
Re: [Help]Got Errors while compile - by Leo_Johnson - 23.09.2011, 14:19
Re: [Help]Got Errors while compile - by jotan. - 23.09.2011, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)