ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. warn

Function

warn

ServerMiscellaneousTrilogy Hub only

A standard Lua 5.4 function: emits a warning made of its arguments. Lua warnings are off by default (warn("@on") turns them on) and go to the server process error output. For messages to script authors use outputDebugString.

Syntax

nil warn(string message)

Arguments

messagestring
The message (further arguments are appended).

Returns

Nothing.

Example

warn("@on")
warn("Uwaga: ", "brak pliku konfiguracji")

See also