Strange errors
#4

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;
}
If im right, you got 2 of those. Delete one of them
Reply


Messages In This Thread
Strange errors - by Mr.Black - 13.07.2011, 08:49
Re: Strange errors - by Wesley221 - 13.07.2011, 08:52
Re: Strange errors - by Mr.Black - 13.07.2011, 08:55
Re: Strange errors - by Wesley221 - 13.07.2011, 08:56
Re: Strange errors - by Mr.Black - 13.07.2011, 08:58
Re: Strange errors - by [CrC]reinixx - 13.07.2011, 09:19
Re: Strange errors - by Mr.Black - 13.07.2011, 09:21
Re: Strange errors - by WoodPecker - 13.07.2011, 09:21
Re: Strange errors - by Mr.Black - 13.07.2011, 09:24

Forum Jump:


Users browsing this thread: 1 Guest(s)