# Admin Mod Error Codes

Not that you'd hope to have to deal with the information on this page, but hey - if it's broken, sometimes you need this stuff to fix it. If you get an error code when running Admin Mod [Shorthand for "modification," this term most often refers to a game or program that takes the original Half-Life game and changes it into another game.] , just look it up in this table to cross reference to a name and description.

This is the list of error codes for Admin Mod 2.50.

A note about the error numbers: 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. Error Codes 13 through 15 are not used.

Error Code | Error Name | Description
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