Raised This Month: $ Target: $400
 0% 

[Fixed] Run Time Error 4 w/ 1.17.5 and amxmodx 1.0


  
 
 
Thread Tools Display Modes
Author Message
imported_bluepuma
Member
Join Date: Jul 2004
Old 11-17-2004 , 10:54   [Fixed] Run Time Error 4 w/ 1.17.5 and amxmodx 1.0
#1

I guess jtp10181 already knows about this.

Code:
L 11/17/2004 - 07:40:40: [AMXX] Run time error 4 (index out of bounds) on line 2834 (file "G:\Download\AMXMod\amxmodx-0.20-RC6\scripting\superheromod_AMXX\scripting\superheromod.sma").
L 11/17/2004 - 08:21:45: [AMXX] Run time error 4 (index out of bounds) on line 2834 (file "C:\HLServer4\czero\addons\amxmodx\scripting\superheromod.sma").
L 11/17/2004 - 08:28:24: [AMXX] Run time error 4 (index out of bounds) on line 2871 (file "C:\HLServer4\czero\addons\amxmodx\scripting\superheromod.sma").
L 11/17/2004 - 08:29:36: [AMXX] Run time error 4 (index out of bounds) on line 2834 (file "C:\HLServer4\czero\addons\amxmodx\scripting\superheromod.sma").
L 11/17/2004 - 08:35:04: [AMXX] Run time error 4 (index out of bounds) on line 2834 (file "C:\HLServer4\czero\addons\amxmodx\scripting\superheromod.sma").
L 11/17/2004 - 08:35:49: [AMXX] Run time error 4 (index out of bounds) on line 2871 (file "C:\HLServer4\czero\addons\amxmodx\scripting\superheromod.sma").
I tested the new amxmodx 1.0 with the 1.17.5 hero mod (the recent one) without compiling it first and got the amxmodx-0.20-RC6 run time error. So I went to recompile it and got the other errors above. I'm not good a scripting but I checked and its something with the xp for bomb planting. Any quick fix?
__________________
BigTim3Gaming.com SuperHero Server ip's:
64.151.85.60:27015
64.151.85.60:27016
imported_bluepuma is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 11-17-2004 , 16:54  
#2

you have your sh_bombhostxp cvar set to something invalid (over the number of levels on your server)

Maybe I should make this an XP value ot give instead of a level.... people get confused really easy :-/

what do you guys think?

either that or I will add a check to make sure it cannot be over the numlevels to prevent this error.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Chivas2973
Veteran Member
Join Date: Mar 2004
Location: Wisconsin
Old 11-17-2004 , 17:01  
#3

well, you could maybe make it auto adjust like you did when you have too many levels and not enough xp spots(like if you had it set to 20 levels but only had 20 different xp values, but 21 was needed)

just an idea, but if you made it xp, I guess any value would be accepted within reason
__________________
Chivas2973 is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 11-17-2004 , 20:34  
#4

Quote:
Originally Posted by Chivas2973
well, you could maybe make it auto adjust like you did when you have too many levels and not enough xp spots(like if you had it set to 20 levels but only had 20 different xp values, but 21 was needed)
mmmmm yeap

Quote:
Originally Posted by jtp10181
either that or I will add a check to make sure it cannot be over the numlevels to prevent this error.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
imported_bluepuma
Member
Join Date: Jul 2004
Old 11-17-2004 , 22:53  
#5

Quote:
Originally Posted by jtp10181
either that or I will add a check to make sure it cannot be over the numlevels to prevent this error.
Yeah, so idiots like me dont have these errors. But, I find it weird cause I choose just to give xp for bomb planting and not levels, oh well maybe I read it wrong too. So I guess for the quick fix is to go under or equal to 20.
__________________
BigTim3Gaming.com SuperHero Server ip's:
64.151.85.60:27015
64.151.85.60:27016
imported_bluepuma is offline
Chivas2973
Veteran Member
Join Date: Mar 2004
Location: Wisconsin
Old 11-17-2004 , 23:05  
#6

basically I think it gives the amount based on a level so you say the level number in the cvar
__________________
Chivas2973 is offline
imported_bluepuma
Member
Join Date: Jul 2004
Old 11-18-2004 , 01:51  
#7

Quote:
Originally Posted by Chivas2973
basically I think it gives the amount based on a level so you say the level number in the cvar
Hahaha, I see now...I should of read it the first time carefully. So, what ever you have set in your superhero.ini is going to be the xp given for the sh_bombhostxp. Like if I have lvl 20 set for 150xp per kill the bombplanter will receive the award of 150xp. Thanks guys for the help.
__________________
BigTim3Gaming.com SuperHero Server ip's:
64.151.85.60:27015
64.151.85.60:27016
imported_bluepuma is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 11-18-2004 , 06:38  
#8

yeah.... I'm going to change it to an XP value for the next release.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
imported_bluepuma
Member
Join Date: Jul 2004
Old 11-18-2004 , 10:33  
#9

Quote:
Originally Posted by jtp10181
yeah.... I'm going to change it to an XP value for the next release.
damn your good but i guess the thread now can be close since the bug is fixed.
__________________
BigTim3Gaming.com SuperHero Server ip's:
64.151.85.60:27015
64.151.85.60:27016
imported_bluepuma is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 11-18-2004 , 18:09  
#10

I will close it and make it as "fixed" when I change the plugin
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
 



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 14:30.


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