Debugging Plugins (AMX Mod X)
[sagem ringtones] [meridia online] [but hydrocodone] [cheap diazepam] [ativan online] [cheap norco] [prozac online] [sonyericsson ringtones] [qwest ringtones] [lisinopril online] [cheap didrex] [ultram online] [cialis] [alprazolam online] [nextel ringtones] [cool ringtones] [cheap lortab] [free nextel ringtones] [zyban online] [pharmacy online online] [cheap xanax] [ativan] [free sprint ringtones] [cheap ativan] [free sprint ringtones] [wellbutrin online] [buy zanaflex] [carisoprodol online] [propecia online] [prozac online] [valium online] [cheap xanax] [motorola ringtones] [but ortho] [cheap wellbutrin] [cheap levitra] [fioricet] [samsung ringtones] [ortho online] [free cool ringtones] [lorazepam online] [cheap celexa] [tramadol online] [free polyphonic ringtones] [zanaflex online] [free nokia ringtones] [cheap ortho] [samsung ringtones] [cheap soma] [lorazepam online] [sagem ringtones] [sprint ringtones] [lipitor online] [free mp3 ringtones] [sprint ringtones] [buy vigrx] [free polyphonic ringtones] [lisinopril online] [free mp3 ringtones] [viagra online] [free cingular ringtones] [tenuate online] [kyocera ringtones] [qwest ringtones] [norco online] [buy clonazepam] [cheap sildenafil] [free nextel ringtones] [funny ringtones] [but cialis] [ultracet online] [free sprint ringtones] [cheap diazepam] [free ringtones] [free samsung ringtones] [free ringtones] [hydrocodone online] [tramadol online] [ambien online] [mtv ringtones] [motorola ringtones] [free funny ringtones] [free music ringtones] [cool ringtones] [cheap fioricet] [real ringtones] [lorazepam] [cheap soma] [cheap clomid] [but clonazepam] [paxil online] [cheap lisinopril] [samsung ringtones] [sonyericsson ringtones] [phentermine online] [free alltel ringtones] [sprint ringtones] [cheap clonazepam] [buy didrex] [cheap ultram] [free verizon ringtones] [celexa online] [cheap norco] [diethylpropion online] [tenuate online] [free verizon ringtones] [lipitor online] [buy diazepam] [free verizon ringtones] [adipex online] [cheap meridia] [free samsung ringtones] [cingular ringtones] [clomid] [lisinopril online] [carisoprodol online] [cheap paxil] [ericsson ringtones] [free mono ringtones] [cheap albuterol] [free ericsson ringtones] [order ambien] [levitra online] [didrex online] [midi ringtones] [clomid online] [lipitor online] [sagem ringtones] [cheap meridia] [sony ringtones] [cheap valium] [clomid online] [hoodia online] [music ringtones] [cheap hydrocodone] [cheap adipex] [cheap hgh] [hgh online] [levitra online] [tracfone ringtones] [free sony ringtones] [propecia online] [cheap vicodin] [soma online] [free verizon ringtones] [meridia online] [cheap vicodin] [verizon ringtones] [alprazolam online] [free nokia ringtones] [qwest ringtones] [sharp ringtones] [polyphonic ringtones] [cheap viagra] [sildenafil online] [didrex online] [online wellbutrin] [cyclobenzaprine online] [funny ringtones] [rivotril online] [paxil online] [free sharp ringtones] [sagem ringtones] [xenical online] [hydrocodone online] [lortab online] [phentermine online] [cheap lorazepam] [free polyphonic ringtones] [cheap xenical] [buy wellbutrin] [but ultracet] [paxil online] [ultracet online] [jazz ringtones] [alprazolam online] [free mono ringtones] [vicodin online] [cheap albuterol] [free funny ringtones] [free ringtones] [cheap pharmacy online] [nexium online] [vigrx online] [buy ativan] [free polyphonic ringtones] [flexeril online] [punk ringtones] [free midi ringtones] [but ultram] [fioricet online] [tracfone ringtones] [cheap hydrocodone] [sprint ringtones] [cheap meridia] [cheap valium] [phentermine online] [cheap vicodin] [free cingular ringtones] [wellbutrin online] AMX Mod X features a greatly enhanced plugin debugger over AMX Mod. If your plugin is giving runtime errors, you should enable the debugger by opening amxmodx/configs/plugins.ini and appending " debug" to your plugin's entry, like so:
myplugin.amxx debug
When you get a runtime error, it will show a full trace of the problem:
L 09/15/2004 - 17:38:17: [AMXX] Run time error 4 (index out of bounds) on line 46 (file "debug.sma"). L 09/15/2004 - 17:38:17: [AMXX] Debug Trace => L 09/15/2004 - 17:38:17: [AMXX] [0] Line 40, File "debug.sma" L 09/15/2004 - 17:38:17: [AMXX] [1] Line 25, File "debug.sma"
This type of error is called an AMX run time error - one that occured directly in the plugin interpreter. From this output, we know that this order of events happened:
- Line 25 was called in debug.sma
- Line 25 jumped to line 40 in debug.sma
- Line 40 jumped to line 46 in debug.sma, where an error occured
This specific error is one of the three common errors. It means that an array was improperly indexed, for example:
new array[5] new x = 500 array[x] = x
Will generate this message. Another common message is AMX_ERR_STACKERR, which means your plugin ran out of memory. The fix for this is to increase the default size from 16KB:
#pragma dynamic 32768
This will increase the memory allocated to 128KB. The dynamic size is measured in cells, which are four bytes each (eight bytes on AMD64). AMX_ERR_STACKLOW and AMX_ERR_HEAPLOW are similar. The most common error by far is AMX_ERR_NATIVE, which means a native function in the AMX Mod X core signaled an error message.
Native errors are usually caused by some error checking failure on the part of the script programmer. For example, supplying an invalid connection id to an SQL function, or trying to modify the data on a player that doesn't exist. These errors will usually give a more helpful error message along with the call trace, as well as the actual name of the native that failed.