Raised This Month: $ Target: $400
 0% 

index out of bounds (yea another one) unresolved still


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
gzus
Member
Join Date: Jan 2007
Old 02-18-2007 , 09:20   index out of bounds (yea another one) unresolved still
Reply With Quote #1

L 02/18/2007 - 09:174: [AMXX] Displaying debug trace (plugin "mho_mod.amxx")
L 02/18/2007 - 09:174: [AMXX] Run time error 4: index out of bounds
L 02/18/2007 - 09:174: [AMXX] [0] mho_mod.sma::ShowHUD (line 709)
L 02/18/2007 - 09:174: [AMXX] [1] mho_mod.sma:oChooseRace (line 22

ive been tryin to dig thro the forums here to find a fix, or get an idea how to fix this, but i havent see anything close to it yet.. heres my code:
PHP Code:

ShowHUD
(id// line 228

public ShowHUD(id)    
    { 
    new 
HUD[61]
    
//new wtf = CLASSES[PlayerClass[id]]
    //++wtf
    
format(HUD60"[%s] Level: %i XP: %i"CLASSES[PlayerClass[id]], PlayerLevel[id], PlayerXP[id])   // line 709
    
    
message_begin(MSG_ONEmsgtext, {0,0,0}, id
    
write_byte(0
    
write_string(HUD
    
message_end() 
    new 
szName[32], szAuthId[32]
    
get_user_name(idszName31)
    
get_user_authid(idszAuthId31)
    
server_print("--MHO MOD-- [SHOWING HUD] for: %s AuthId: %s"szNameszAuthId)
    
//server_print("--MHO MOD-- HOOK HUD COMPLETE",0.05)
    
return

i understand that the problems in ShowHUD, and this should be a fix, changin new HUD[51] to something higher, but its not working for me, i get other errors when i raise HUD.. any ideas?
__________________
71.200.20.142:27017 - testing mho mod
if you need any files visit clan.mosthatedonline.com

Last edited by gzus; 02-18-2007 at 12:20. Reason: fixed code
gzus is offline
 



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 00:37.


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