AMX Mod X API Documentation

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

Aborts execution of the current callback by throwing an error.

Notes
  • 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
Parameters
  • error Error code
  • fmt Formatting rules
  • ... Variable list of formatting parameters
No return value
Errors
  • The function is guaranteed to throw an error, using the

    specified custom log message.

Назад
Верх