SA:MP Project: KowaZ Zone Include [KZI]
#5

Code:
new tmp[256];
Code:
tmp = strtok(cmdtext,idx);
Code:
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;
}
Reply


Messages In This Thread
SA:MP Project: KowaZ Zone Include [KZI] - by Kowalski - 05.01.2008, 09:57
Re: The KowaZ Project: Zone System - by cmg4life - 05.01.2008, 11:41
Re: The KowaZ Project: Zone System - by Kowalski - 05.01.2008, 11:44
Re: The KowaZ Project: Zone System - by Maniek - 05.01.2008, 13:53
Re: The KowaZ Project: Zone System - by MaTrIx4057 - 05.01.2008, 13:55
Re: The KowaZ Project: Zone System - by Kowalski - 05.01.2008, 14:05
Re: The KowaZ Project: Zone System - by Chumillas - 05.01.2008, 14:31
Re: The KowaZ Project: Zone System - by Kowalski - 05.01.2008, 14:32
Re: The KowaZ Project: Zone System - by jesse989898 - 05.01.2008, 14:44
Re: The KowaZ Project: Zone System - by Kowalski - 05.01.2008, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)