23.07.2012, 04:21
Try to add this to your code somewhere:
Not in any funtions, etcetra.
Not certain, as I never use default commands, but that might be needed to do it. It might not be already in the script, as you may need to add it yourself.
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;
}
Not certain, as I never use default commands, but that might be needed to do it. It might not be already in the script, as you may need to add it yourself.

