ErrPrintf(string)
Description
Section titled “Description”The ErrPrintf Lua function prints a red error message in the Command Line History and System Monitor.
Argument
Section titled “Argument”- String:
The string text to be printed to the Command Line History.
Return
Section titled “Return”This function does not return anything.
Example
Section titled “Example”This example prints “This is a red error message!” in the Command Line History and System Monitor:
| Copy CodeLua |
| ``` |
| return function() |
-- Prints an error message in the command line feedback in red text.ErrPrintf("This is an error message!")end