Umm can some one tell me about this?
#1

Код:
(865) : error 021: symbol already defined: "strtok"
(880) : error 047: array sizes do not match, or destination array is too small
I get those errors everytime I put this into my script
Код:
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;
}
But there is no other strtok in my script except that one.

Can anyone help me cause when i go into the server for the script it's /login doesn't work. Says Server Unkown command.
Reply
#2

delete that strtok cause u have one in ur GM or one of ur includes
Reply
#3

Quote:
Originally Posted by Etch ❽ H
delete that strtok cause u have one in ur GM or one of ur includes
ok thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)