Raised This Month: $51 Target: $400
 12% 

amxbans 4.0


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Toxicity
Guest
Old 08-23-2005 , 21:02  
#911

I've been lucky enough to have this working on a DoD server now through the last 3 stages of amxmodx. Now with 1.5 and the recommended mm1.18.0p24, I'm getting this error
Quote:
L 08/23/2005 - 16:40:44: -------- Mapchange --------
L 08/23/2005 - 16:40:45: [AMXX] Run time error 4 (index out of bounds)
L 08/23/2005 - 16:40:45: [AMXX] Displaying call trace (plugin "dod\addons\amxmodx\plugins\admin.amxx")
L 08/23/2005 - 16:40:45: [AMXX] [0] admin.sma::adminSql (line 200)
L 08/23/2005 - 16:40:45: [amxbans.amxx] AMXBans amxx_4.0 is online
L 08/23/2005 - 16:40:46: [amxbans_menu.amxx] AMXBans Menu is online (7 reasons loaded)
Line 2oo is
Code:
  g_aNum = 0   while( dbi_nextrow(Res) > 0 ) {     dbi_result(Res, "username", g_aName[g_aNum], 31) //HERE     dbi_result(Res, "password", g_aPassword[g_aNum], 31)     dbi_result(Res, "access", szAccess, 31)     dbi_result(Res, "flags", szFlags, 31)

I'm using the the sma's that came with amxbans, but with the upgrade to 1.5, I've included Lantz fix's on lines 604 & 611 in the amxbans.sma. I've always had to use the mysql version of admin.sma. The mysql_admin included with all installs has never worked. All the functions work, the custom defined ban menu (times), all levels recognized, etc. But this error nags me.... Insight?
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 08-24-2005 , 06:49  
#912

@Toxicity
How many admins do you have??
That error I think comes up if you have to many admins in the database.
If you have more that 64 admins you have to edit admin.sma to allow more admins.

This is just a guess from my side.

[EDIT 01]
I just tried to change this
#define MAX_ADMINS 2048 // standard is 64 in the sma
to
#define MAX_ADMINS 12

Then I got exactly the same error as you..
So I'm now pretty sure you need to define more admins.
PS
I have over 1200 admins on my server due to registration so it is not a typo (204
DS
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
Toxicity
Guest
Old 08-24-2005 , 15:52  
#913

/me bows before lantz....

I did forget to edit that line when I upgraded. After edit and recompile, 0 errors. Thank you so much. As a matter of fact, give me your address and I'll make arragements for the local girl scouts to bring you cookies...
GDX^
Junior Member
Join Date: May 2005
Old 08-25-2005 , 11:12  
#914

I'm waiting for a version that works with 1.55...
__________________

http://it-blog.be/ for more ;)
GDX^ is offline
thereapman
New Member
Join Date: Dec 2004
Old 08-25-2005 , 11:29  
#915

I've tried the fix from Page 59 to solve the Servercrash on Mapchange but it dont will fix it. Any other Ideas to fix it?

I also get an:
Code:
L 08/25/2005 - 16:22:36: [AMXX] [MYSQL] Invalid result handle 2
L 08/25/2005 - 16:22:36: [AMXX] Debug is not enabled (plugin "czero/addons/amxmodx/plugins/amxbans.amxx")
The Server runs fine with this error, but i have to disable amxbans_menu in the plugins.ini.

EDIT: Can someone send me the Fixed sma-files for amx 1.5, because i'm very confused?
Please send me an PM and you will get my FTP-address to upload.
thereapman is offline
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 08-25-2005 , 11:55  
#916

Quote:
Originally Posted by thereapman
I've tried the fix from Page 59 to solve the Servercrash on Mapchange but it dont will fix it. Any other Ideas to fix it?

I also get an:
Code:
L 08/25/2005 - 16:22:36: [AMXX] [MYSQL] Invalid result handle 2
L 08/25/2005 - 16:22:36: [AMXX] Debug is not enabled (plugin "czero/addons/amxmodx/plugins/amxbans.amxx")
The Server runs fine with this error, but i have to disable amxbans_menu in the plugins.ini.
Did you change that line with a capital "R" and changed it to lowercase "r" (result)
Enable debug to see what lines in the source that are wrong.

BTW I'm running amxbans with AMXMODX 1.55 now..
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
GDX^
Junior Member
Join Date: May 2005
Old 08-25-2005 , 12:04  
#917

Quote:
Originally Posted by thereapman
I've tried the fix from Page 59 to solve the Servercrash on Mapchange but it dont will fix it. Any other Ideas to fix it?

I also get an:
Code:
L 08/25/2005 - 16:22:36: [AMXX] [MYSQL] Invalid result handle 2
L 08/25/2005 - 16:22:36: [AMXX] Debug is not enabled (plugin "czero/addons/amxmodx/plugins/amxbans.amxx")
The Server runs fine with this error, but i have to disable amxbans_menu in the plugins.ini.

EDIT: Can someone send me the Fixed sma-files for amx 1.5, because i'm very confused?
Please send me an PM and you will get my FTP-address to upload.
If you ban a player, he won't get kicked!
__________________

http://it-blog.be/ for more ;)
GDX^ is offline
thereapman
New Member
Join Date: Dec 2004
Old 08-25-2005 , 12:10  
#918

Yes.

Here my Server output:
Quote:
Connection to Steam servers successful.
VAC secure mode is activated.
L 08/25/2005 - 17:07:28: [AMXX] [MYSQL] Invalid result handle 2
L 08/25/2005 - 17:07:28: [AMXX] Displaying call trace (plugin "czero/addons/amxmodx/plugins/amxbans.amxx")
L 08/25/2005 - 17:07:28: [AMXX] [0] amxbans.sma::banmod_online (line 604)
L 08/25/2005 - 17:07:28: [AMXX] [1] amxbans.sma::init_function (line 569)
[AMXX] Loaded 3 reasons from database
L 08/25/2005 - 17:07:28: [amxbans_menu.amxx] AMXBans Menu is online (3 reasons loaded)
changelevel de_inferno_cz
L 08/25/2005 - 17:07:44: -------- Mapchange --------
Navigation map loaded.
Menu item 17 added to Menus Front-End: "" from plugin ""
Executing AMX Mod X Configuration File
[AMXX] Loaded 6 admins from database
./hlds_run: line 342: 12820 Segmentation fault (core dumped) $HL_CMD
Failed to read a valid object file image from memory.
Cannot access memory at address 0xbfb948f8
debug.cmds:4: Error in sourced command file:
Cannot access memory at address 0xbfb948f8
email debug.log to [email protected]
Thu Aug 25 17:07:45 CEST 2005: Server restart in 10 seconds
Thu Aug 25 17:07:55 CEST 2005: Server Quit
thereapman is offline
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 08-25-2005 , 12:14  
#919

Quote:
Originally Posted by GDX^
If you ban a player, he won't get kicked!
You need to prune the database..
You can do that with the web frontend or the perlscript included
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 08-25-2005 , 12:17  
#920

@thereapman
I dont think you have applied the fixx with the capital "R" in result variable

Try again ..
Maybe you just forget to put the new compiled .amxx to the plugins folder
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode