Syntax
rconsolewarn(...values?: ..any)Aliases
consolewarnArguments
| Name | Type | Description |
|---|---|---|
...values? | ..any | Optional values. If a console exists, each value is converted to strings and joined with tab characters before writing. |
Description
Writes zero or more values to the current Windows console using the warning text color, then restores the normal console text color. Values are converted to strings and separated with tabs. If no console window exists, the call returns without writing anything.
Call it with 1 parameter(s): ...values. The argument table explains which values are required and which ones only refine the behavior.
It does not return data. Treat the call as an action and handle errors around the call site when needed.
Example
Write values to the current Windows console with the warning console text attribute. Values are tab-separated, no newline or warning prefix is added, and consolewarn is the same function.
rconsolecreate()
rconsolewarn("Retrying request", 3)
rconsolewarn("\n")