Error(): Difference between revisions

From TinyMUX
Jump to navigation Jump to search
New page: Category:Functions {{Function|error(<string>)}} This function is useful in softcoded commands, especially @addcommand'ed ones. If the global_error_obj config parameter is not set, th...
 
(No difference)

Latest revision as of 09:48, 27 November 2010


error(<string>)

This function is useful in softcoded commands, especially @addcommand'ed ones. If the global_error_obj config parameter is not set, this will return the default error message. If it is, it passes <string> as if the player had typed it and gotten a bad command.

Example

> say error()

You say, "Huh? (Type 'help' for help.)"


> say error(@pmit)

You typed '@pmit'.