native

set_error_filter

Syntax

native set_error_filter(const handler[]);

Description

Allows you to trap error messages that occur in your plugin.
You can use this to override the debug messages that occur when your plugin
causes some sort of runtime error. Your handler will be called in this style:

public error_filter(error_code, bool:debugging, message[])
error_code is the AMX_ERR code. debugging is whether or not the plugin is in debug mode.
message[] is any message that was sent along with the error.
Return PLUGIN_CONTINUE to let the error pass through the filter.
Return PLUGIN_HANDLED to block the error from displaying.