If proper argument does not being pass while executing a command "Command Info" should be printed, but I need to manually check the argument count and print message. Kindly correct me with my following code snippet.
Code:
register_concmd("amx_cmd", "FnCommands", ADMIN_IMMUNITY, "Command Info")
public FnCommands(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
if(read_argc() != 2)
{
console_print(id, "Usage: Command Info")
return PLUGIN_HANDLED
}
}