set_error_filter

Синтаксис

native set_error_filter(const handler[]);

Употреба

handler
Function name to call

Описание

Allows to trap error messages that occur in a plugin.

Забележка

This can be used to override the debug messages that occur when the
plugin causes some kind of runtime error.

Забележка

The handler will be called in the following manner:

public error_filter(error_code, bool:debugging, message[])

  error_code      - AMX_ERR_* code.
  debugging       - True if the plugin is in debug mode, false otherwise
  message[]       - Message sent along with the error

Забележка

The handler should return PLUGIN_CONTINUE to let the error through the
filter, or PLUGIN_HANDLED to block the error from displaying.

Връщаща стойност

Тази функция няма връщаща стойност.

Грешка

If an invalid callback function is provided, an error
is thrown.