[HELP] Errors when added Dini.inc
#2

Add this somewhere under the defines( Usually above OnGameModeInit() )
Код:
stock 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;
}
Peace
Reply


Messages In This Thread
[HELP] Errors when added Dini.inc - by Popepill - 10.01.2010, 09:18
Re: [HELP] Errors when added Dini.inc - by bajskorv123 - 10.01.2010, 09:20
Re: [HELP] Errors when added Dini.inc - by Popepill - 10.01.2010, 09:21
Re: [HELP] Errors when added Dini.inc - by bajskorv123 - 10.01.2010, 09:23
Re: [HELP] Errors when added Dini.inc - by sean5874 - 10.01.2010, 09:26
Re: [HELP] Errors when added Dini.inc - by Popepill - 10.01.2010, 09:26
Re: [HELP] Errors when added Dini.inc - by bajskorv123 - 10.01.2010, 09:27
Re: [HELP] Errors when added Dini.inc - by Popepill - 10.01.2010, 09:28

Forum Jump:


Users browsing this thread: 1 Guest(s)