Skip to main content

Module error

Module error 

Source
Expand description

Errors emitted by the AMX VM and the SA-MP amx_* functions.

Codes correspond 1:1 to the AMX_ERR_* values from the original C header. Codes outside the known range (including 0 = success interpreted as failure in context) become AmxError::Unknown to avoid panicking.

Enums§

AmxError
Error returned by calls to SA-MP amx_* functions.

Type Aliases§

AmxResult
Shortcut for Result<T, AmxError>.