SetFailState Function

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.

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

Parameters

const char[] string

Format specifier string.

any... ...

Formatting arguments.

Errors

Always throws SP_ERROR_ABORT.