cmd = strtok(cmdtext, idx); problem
#1

i updated to this now i have loads of error in my gm arrays size is to small how to fix please
and no im not useing sscanf
thanks
Код:
stock strtok(const stringdutils[], &index,seperator=' ')
{
	new length = strlen(stringdutils);
	new offset = index;
	new result[MAX_stringdutils];
	while ((index < length) && (stringdutils[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = stringdutils[index];
		index++;
	}

	result[index - offset] = EOS;
	if ((index < length) && (stringdutils[index] == seperator))
	{
		index++;
	}
	return result;
}
Reply
#2

Search, this was answered many times.
Reply
#3

Thats probably why you have such many posts as well. Because you keep spamming this unuseful "seach" comments all over this forum.
If you dont help, you can shut it.
I dont know anything about scripting, so this is mainly just to prove my point to Don Correlli here.

Hope some SERIOUS member comes to help you out with your problem. Good luck.
Reply
#4

Quote:
Originally Posted by Kayaque
If you dont help, you can shut it.
You can also shut it if you don't know the rules. And i'm 99.9% sure you don't so go and read them or do i need to quote them for you?
Reply
#5

the thing is i have search and carnt find an answer so please help
Reply
#6

http://forum.sa-mp.com/index.php?topic=132017.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)