AMX Mod X API Documentation

Signature
native SMC_SetParseEnd(SMCParser:handle, const func[]);
Description

Sets the SMC_ParseEnd function of a parse handle.

Notes
  • Below is the prototype of callback:

    -

    Called when parsing is halted.

    .@param handle Handle to an SMC Parse structure.

    .@param halted True if abnormally halted, false otherwise.

    .@param failed True if parsing failed, false otherwise.

    .@param data Handle or value passed in SMC_ParseFile

    .@noreturn

    public OnParseEnd(SMCParser:handle, bool:halted, bool:failed, any:data)

    -

Parameters
  • handle Handle to an SMC Parse structure.
  • func A ParseEnd callback.
No return value
Errors
  • Invalid or corrupt handle.
Назад
Верх