Skip to content

ErrPrintf

Anthony Headley edited this page Apr 19, 2020 · 2 revisions

ErrPrintf(string:format ...)

Breif:

Outputs a white(1) colored string to the consoles Command Line History AND System Monitor (1) This may be a bug.

Paramiters:

Name Description Optional
string:format lua formatted string see https://www.lua.org/pil/20.html for further details

Returns:

nil

Examples:

    ErrPrintf("Testing, Testing " .. 100 + 20 + 3 .. "!")
    ErrPrintf("Testing, Testing %d!", 100 + 20 + 3)
    local test = "Testing"
    ErrPrintf("%s, %s %d!", test, test, 100 + 20 + 3) -- Testing, Testing 123 (decimal)
    ErrPrintf("%s, %s %f!", test, test, 100 + 20 + 3 + 0.0) -- Testing, Testing 123.000000! (float)
    ErrPrintf("%s, %s %x!", test, test, 2748) -- Testing, Testing abc (hex)
Clone this wiki locally