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


Messages In This Thread
Umm can some one tell me about this? - by kujox32 - 03.05.2010, 23:19
Re: Umm can some one tell me about this? - by aircombat - 03.05.2010, 23:41
Re: Umm can some one tell me about this? - by kujox32 - 04.05.2010, 01:15

Forum Jump:


Users browsing this thread: 1 Guest(s)