14.04.2011, 07:44
Quote:
sorry but i dont found STRTOK in the forum can you tell me how
|
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;
}
And also, https://sampforum.blast.hk/showthread.php?tid=248473 You are not allowed to post two different threads regarding the same issue.