AMX Mod X API Documentation

Signature
native unregister_message(iMsgId, registeredmsg);
Description

Unregisters a message hook previously created with register_message().

Notes
  • You must pass the proper message id and return value from the

    message to unregister the message successfully.

Parameters
  • iMsgId Message id
  • registeredmsg Registered message id
Returns

Id that can again be passed to register_message() on

success, or 0 if an invalid message id is passed

Errors
  • If an invalid registered message handle is passed, an

    error will be thrown.

Назад
Верх