Errors
#2

Add this

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 - by Dare Devil..... - 27.07.2012, 09:50
Re: Errors - by Ironboy - 27.07.2012, 09:54
Re: Errors - by Dare Devil..... - 27.07.2012, 10:42
Respuesta: Errors - by farCry.xD - 27.07.2012, 11:27
Re: Errors - by Dare Devil..... - 27.07.2012, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)