SA-MP Forums Archive
Command bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Command bug (/showthread.php?tid=332770)



Command bug - Jorek - 09.04.2012

I added some commands to my script, like: /me, /report etc.
When I type "/me" it says "/me [USAGE] [text]" but when I type "/me spits" it says "SERVER:Unknown Command


HELPPPP


Re: Command bug - Reklez - 09.04.2012

Show the code of /me


Re: Command bug - Jorek - 09.04.2012

Код:
	if(strcmp( "/me", cmdtext, true) == 3)
	{
	    if(!cmdtext[3])return SendClientMessage(playerid, 0xFFFF00AA, "Usage: /me [action]");
	    new str[128];
	    GetPlayerName(playerid, str, sizeof(str));
	    format(str, sizeof(str), "%s %s", str, cmdtext[4]);
	    SendClientMessageToAll(0xFFFF00AA, str);
		return 1;
	}
There