15.02.2007, 21:46
Okay I have found the solution...
Comment off the strtok() function in your script because there is no need for it based on your existing commands, plus it is messing up all the commands in my filterscript.
And finally replace all cmd\'s in your script with cmdtext (the only time you would use strtok() is when you are doing commands with id numbers and such).
Example:
change
to
Comment off the strtok() function in your script because there is no need for it based on your existing commands, plus it is messing up all the commands in my filterscript.
pawn Code:
/*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;
}*/
Example:
change
pawn Code:
if (strcmp(cmd, "/segitseg", true)==0)
pawn Code:
if (strcmp(cmdtext, "/segitseg", true)==0)