abort

Синтаксис

native abort(error, const fmt[] = "", any:...);

Употреба

error
Error code
fmt
Formatting rules
...
Variable list of formatting parameters

Описание

Aborts execution of the current callback by throwing an error.

Забележка

Warning: This function should not be used inside error filters, module
filters (native filters are safe if trap equals 1) or the
plugin_natives() forward.

Забележка

The message will automatically be tagged with the plugin's name and the
log will include a timestamp with the message.

Забележка

For a list of possible error codes, see AMX_* constants in amxconst.inc

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

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

Грешка

The function is guaranteed to throw an error, using the
specified custom log message.