Problem with /ad and /adminkick
#1

I have 2 commands, one is /ad and another is /adminkick. (Code below)

Код:
	
if(!strcmp(cmdtext, "/ad", true,3))
	  {
	  if(!strlen(cmdtext[4])) SendClientMessage(playerid, 0x33CCFFAA, "USAGE: /ad [text]");
      format(pname,100,"[ADVERTISEMENT] %s : %s", pname, cmdtext[4]);
However if I try to type /adminkick it will display [ADVERTISEMENT] NAME: minkick

How can I make it so that doesn't happen?
Reply
#2

The problem is because the a part of /adminkick is /ad, so it contains that result
I suggest you to change the /adminkick to /kick
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)