Ok guys I got a problem i need some help with.
#1

The error codes and Numbers.

Код:
pwn(3313) : error 021: symbol already defined: "strtok"
pwn(3328) : error 047: array sizes do not match, or destination array is too small
The piece of script that it is having a problem with.

Код:
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;
}
I don't know how it strtok is already defined. So. if anyone knows what can cause these errors or knows a trick to fixing them please let me know. Thanks in advance for any help, You guys may give me .
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)