error 017: undefined symbol "strtok"
#3

Have you decleared strtok function?
Read the wiki: https://sampwiki.blast.hk/wiki/Strtok

You have to add this:
Код:
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;
}
To your code.

Anyway, i really suggest you replacing d_cmd with ZCMD and Strtok with SSCANF.
Reply


Messages In This Thread
error 017: undefined symbol "strtok" - by Team_PRO - 31.01.2015, 00:21
Re: error 017: undefined symbol "strtok" - by Gangster-rocks - 31.01.2015, 00:49
Re: error 017: undefined symbol "strtok" - by icra - 31.01.2015, 00:50

Forum Jump:


Users browsing this thread: 1 Guest(s)