Code:
L 09/10/2004 - 23:08:00: [AMXX] Run time error 10 on line 3297 (plugin "superheromod.amxx")
here is code around this error (this is the very last function in the plugin)
Code:
public createINIFile()
{
if ( file_exists(gSHFile) ) delete_file(gSHFile)
write_file(gSHFile,"## NUMLEVELS - The total Number of levels to award players",0)
write_file(gSHFile,"## XPLEVELS - How much XP does it take to earn each level (0..NUMLEVELS)",1)
write_file(gSHFile,"## XPGIVEN - How much XP is given when a Level(N) player is killed (0..NUMLEVELS)", 2)
write_file(gSHFile,"## LTXPLEVELS - Same as XPLEVELS but for Long-Term mode (sh_savexp 1)",3)
write_file(gSHFile,"## LTXPGIVEN - Same as XPGIVEN but for Long-Term mode (sh_savexp 1)", 4)
// Straight from WC3 - but feel free to change it in the INI file...
write_file(gSHFile,"NUMLEVELS 10" , 5)
write_file(gSHFile,"XPLEVELS 0 100 300 600 1000 1500 2100 2800 3600 4500 5500", 6)
write_file(gSHFile,"XPGIVEN 60 80 100 120 140 160 180 200 220 240 260", 7)
write_file(gSHFile,"LTXPLEVELS 0 100 200 400 800 1600 3200 6400 12800 25600 51200", 8)
write_file(gSHFile,"LTXPGIVEN 6 8 10 12 14 16 20 24 28 32 40", 9)
}
the very last "write_file" line is line# 3297
it seems to be getting errors elsewhere but outputs the last line number every time. I had this happen on a hero also, it was reporting the last line as the error line, but I fixed the error elsewhere in the plugin.
Any ideas?
Sorry if this is known already, I looked in the forums and could not find any info. Could not figure out a good way to search for this either.
__________________