can anyone explain me this ?
#1

Код:
.pwn(6184) : error 017: undefined symbol "strtok"
.pwn(6184) : error 033: array must be indexed (variable "tmp")
it repeats 200 times ..
Reply
#2

Well what line is that?
Reply
#3

Quote:
Originally Posted by Backwardsman97
Well what line is that?
Код:
tmp = strtok(cmdtext, idx);
thats the line
Reply
#4

add this to the bottom of your script and you should be good
Код:
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
#5

Thank you very much guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)