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.
- Возвращает
- Функция ничего не возвращает