public static bool HelpMe(string[] com) { if (com.Length < 1) { return(false); } if (com[0] != "help") { return(false); } if (com.Length == 1) { Conzole.PrintLine("Help: ", ConsoleColor.Magenta); Conzole.PrintLine("Type in \"help [command]\" to find help about a command."); Conzole.PrintLine("Type in \"help syntax\" to find help about the syntax in help."); Conzole.PrintLine("Commands: "); Conzole.Enlist(commands); return(true); } if (com[1] == "syntax") { Conzole.PrintLine("Syntax help: ", ConsoleColor.Magenta); Conzole.PrintLine(syntaxmsg); return(true); } int index = 0; bool found = false; string command = com[1]; if (command.Length >= 3) { for (int i = 2; i < com.Length; i++) { command += " " + com[i]; } } for (int i = 0; i < commands.Length; i++) { if (commands[i] == command) { index = i; found = true; break; } } if (found && index < syntax.Length) { Conzole.PrintLine("Syntax: ", ConsoleColor.Magenta); Conzole.PrintLine(syntax[index]); } return(true); }