SetFailState

Last Updated2016-05-21
Created At2007-05-23

Causes the plugin to enter a failed state. An error will be thrown and the plugin will be paused until it is unloaded or reloaded. For backwards compatibility, if no extra arguments are passed, no formatting is applied. If one or more additional arguments is passed, the string is formatted using Format(). If any errors are encountered during formatting, both the format specifier string and an additional error message are written. This function does not return, and no further code in the plugin is executed.

native void SetFailState(const char[] string, any ...)

Parameters

const char[] string
Format specifier string.
any... ...
Formatting arguments.

Return Value

void

Error

Always throws SP_ERROR_ABORT.