A /color command
#6

Quote:
Originally Posted by security
Quote:
Originally Posted by player007
I looked but i dont understand it :/
just add
Код:
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 script, and add:
pawn Код:
new cmd[256];
new tmp[256];
on top of OnPlayerCommand (below it)
Reply


Messages In This Thread
A /color command - by security - 02.09.2009, 15:55
Re: A /color command - by Clavius - 02.09.2009, 16:01
Re: A /color command - by security - 02.09.2009, 16:46
Re: A /color command - by Clavius - 02.09.2009, 17:25
Re: A /color command - by security - 02.09.2009, 18:21
Re: A /color command - by Daem - 02.09.2009, 18:47
Re: A /color command - by security - 03.09.2009, 13:45
Re: A /color command - by Clavius - 03.09.2009, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)