SA-MP Forums Archive
Umm can some one tell me about this? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Umm can some one tell me about this? (/showthread.php?tid=145798)



Umm can some one tell me about this? - kujox32 - 03.05.2010

Код:
(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.


Re: Umm can some one tell me about this? - aircombat - 03.05.2010

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


Re: Umm can some one tell me about this? - kujox32 - 04.05.2010

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