/me [action] error
#3

Quote:
Originally Posted by Andom
You are not sending a client message to anyone.
He is, with Prox Detector.

You can use myne if you want, it also stores what the person said in the log file.
Код:
 	if(strcmp(cmd, "/me", true) == 0)
	{
        new pname[18];
		GetPlayerName(playerid, pname, sizeof(pname));
		new length = strlen(cmdtext);
		while ((idx < length) && (cmdtext[idx] <= ' '))
		{
			idx++;
		}
		new offset = idx;
		new result[64];
		while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
		{
			result[idx - offset] = cmdtext[idx];
			idx++;
		}
		result[idx - offset] = EOS;
		if(!strlen(result))
		{
			SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
			return 1;
		}
		format(string, sizeof(string), "%s %s", pname, result);
		ProxDetector(10, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		printf("Local Chat (/me): %s(%d): %s", pname, playerid, result);
 		}
Reply


Messages In This Thread
/me [action] error - by Nmancer - 09.05.2009, 11:02
Re: /me [action] error - by Andom - 09.05.2009, 11:53
Re: /me [action] error - by Paladin - 09.05.2009, 11:59
Re: /me [action] error - by westre - 09.05.2009, 13:25
Re: /me [action] error - by MenaceX^ - 09.05.2009, 14:11
Re: /me [action] error - by Nmancer - 09.05.2009, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)