Problem with errors
#4

Quote:
Originally Posted by IvancheBG
Посмотреть сообщение
sorry but i dont found STRTOK in the forum can you tell me how
You did an good job searching then i guess.

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;
}
Now show us the other line.

And also, https://sampforum.blast.hk/showthread.php?tid=248473 You are not allowed to post two different threads regarding the same issue.
Reply


Messages In This Thread
Problem with errors - by IvancheBG - 14.04.2011, 06:55
Re: Problem with errors - by Lorenc_ - 14.04.2011, 07:01
Re: Problem with errors - by IvancheBG - 14.04.2011, 07:32
Re: Problem with errors - by Cameltoe - 14.04.2011, 07:44
Re: Problem with errors - by IvancheBG - 14.04.2011, 07:46
Re: Problem with errors - by Cameltoe - 14.04.2011, 07:47
Re: Problem with errors - by IvancheBG - 14.04.2011, 07:56

Forum Jump:


Users browsing this thread: 1 Guest(s)