Invalid Command!
#1

i've made that if the player types in an invalid command , that code does its function
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{	
        if(!success)
	{
	    SendClientMessage(playerid,COL_GREEN,"ERROR: Invalid command! Check /CMDS for the commands list");
	}
	return 1;
}
yes it does show when a player types an invalid cmd but it also shows up when a player types a valid one

any help ?
Reply


Messages In This Thread
Invalid Command! - by YoussefHammad - 11.11.2015, 00:11
Re: Invalid Command! - by jlalt - 11.11.2015, 02:32
Re: Invalid Command! - by PrO.GameR - 11.11.2015, 07:08
Re: Invalid Command! - by jlalt - 11.11.2015, 08:01
Re: Invalid Command! - by yvoms - 11.11.2015, 10:23
Re: Invalid Command! - by YoussefHammad - 11.11.2015, 14:47
Re: Invalid Command! - by Jefff - 11.11.2015, 15:12
Re: Invalid Command! - by YoussefHammad - 11.11.2015, 15:44
Re: Invalid Command! - by Jefff - 11.11.2015, 15:53
Re: Invalid Command! - by YoussefHammad - 11.11.2015, 21:13

Forum Jump:


Users browsing this thread: 1 Guest(s)