

Here's the list of error codes for Admin Mod 2.5.  AMX_ERR_NONE starts
at 0,and they count up from there, so that AMX_ERR_SLEEP is 12, and
then it takes the jump to 16 for AMX_ERR_MEMORY, where it continues to
count.  So error #22 would be 'AMX_ERR_INIT'.

0   AMX_ERR_NONE,
1   AMX_ERR_EXIT,         /* forced exit */
2   AMX_ERR_ASSERT,       /* assertion failed */
3   AMX_ERR_STACKERR,     /* stack/heap collision */
4   AMX_ERR_BOUNDS,       /* index out of bounds */
5   AMX_ERR_MEMACCESS,    /* invalid memory access */
6   AMX_ERR_INVINSTR,     /* invalid instruction */
7   AMX_ERR_STACKLOW,     /* stack underflow */
8   AMX_ERR_HEAPLOW,      /* heap underflow */
9   AMX_ERR_CALLBACK,     /* no callback, or invalid callback */
10  AMX_ERR_NATIVE,       /* native function failed */
11  AMX_ERR_DIVIDE,       /* divide by zero */
12  AMX_ERR_SLEEP,        /* go into sleepmode - code can be restarted */

16  AMX_ERR_MEMORY        /* out of memory */
17  AMX_ERR_FORMAT,       /* invalid file format */
18  AMX_ERR_VERSION,      /* file is for a newer version of the AMX */
19  AMX_ERR_NOTFOUND,     /* function not found */
20  AMX_ERR_INDEX,        /* invalid index parameter (bad entry point) */
21  AMX_ERR_DEBUG,        /* debugger cannot run */
22  AMX_ERR_INIT,         /* AMX not initialized (or doubly initialized) */
23  AMX_ERR_USERDATA,     /* unable to set user data field (table full) */
24  AMX_ERR_INIT_JIT,     /* cannot initialize the JIT */
25  AMX_ERR_PARAMS,       /* parameter error */
