Run time error 4: index out of bounds
DEVS SHOULD REALLY LOOK INTO THIS -> see the 6'th reply
1'st of all. i know this happened before and i've read those posts, also i've searched google and what i found is that i should increase the max_admins to a higher value. i did. it didn't work i also did this : Code:
the problem is as follows: i have a mysql database (customised) -as in- it has the following design : Code:
id - int Length(11) Primary key - auto incrementwhen i start up the server it all goes well except it gives me this message: Code:
|
Re: Run time error 4: index out of bounds
Would you post line 465? or the block of code around it.
|
Re: Run time error 4: index out of bounds
Quote:
admin.sma @djh i think you have more then 64 admins. I dont see another case where this runtime error could happen. so increase the MAX_ADMINS define on line 44 from 64 to eg. 128 |
Re: Run time error 4: index out of bounds
err. line 465 is blank.(w000t. now i'm seeing this)
here's the code around it: Code:
|
Re: Run time error 4: index out of bounds
greenberet as i said in the first post, i've been SEARCHING man :)
i know about the MAX_ADMINS and as i said in the first post i changed it to 128 even 256 and it doesn't work |
Re: Run time error 4: index out of bounds
this is what devs should look into
ROFLZMAO this is really something. ok i figured it out. pff. so the amxx 1.76a (and previous versions - tho i might be wrong here) doesn't come with a .sma file for admin_sql. the only admin_sql file i got is admin_sql.amxx as in the already compiled plugin. now, in the plugins.ini file you are instructed to comment the admin.amxx file and leave the admin_sql.amxx file only (if you want sql support, ofcourse). also in the modules.ini you must uncomment ";mysql". that's exactly what i did. then i populated the database and it got like 99 records, that's 99 admins then i got the nasty out of bounds error and debugged almost a day to find out the problem. i must mention that i was only modifying the admin.sma file and recompiling. - because i have no admin_sql.sma to edit - - because the admin_sql.amxx is compiled with MAX_ADMINS 64(i think this is right) the problem appears everytime and since the admin.amxx line in plugins.ini is commented, it didn't matter how many times i had to edit, recompile, restart the server, etc. - now i don't know how admin.amxx and admin_sql.amxx interact but i suppose that whatever is declared in admin.amxx has priority, because once i uncommented the admin.amxx in the plugins.ini and left both admin.amxx and admin_sql.amxx running, it worked like a charm. with the exception that the output was doubled. like this: Code:
] restartCode:
] amxx pluginsso the final result is that i have a server running with admin_sql.amxx comented in plugins.ini and mysql uncommented in modules ini, also admin.amxx uncommented in the plugins.ini and finally admins loading from the mysql database. |
Re: Run time error 4: index out of bounds
I have no patience to get all what you said but i have a feeling that i can easily answer where is the problem.
The problem is that DEVs have forgot to remove the line Quote:
So all what actually was necessary is uncommenting //#define USING_SQL in admin.sma and recompiling/reinstalling the plugin. |
Re: Run time error 4: index out of bounds
you're correct VEN.
that must be what's going on. nonetheless it's confusing for someone who wasn't around from the time they merged those. i consider this issue solved ofc. will a mod please lock this ? thank you :) looking forward to see the new version of amxx with the default plugins.ini set right :) cheers |
| All times are GMT -4. The time now is 04:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.