L 02/18/2007 - 09:17

4: [AMXX] Displaying debug trace (plugin "mho_mod.amxx")
L 02/18/2007 - 09:17

4: [AMXX] Run time error 4: index out of bounds
L 02/18/2007 - 09:17

4: [AMXX] [0] mho_mod.sma::ShowHUD (line 709)
L 02/18/2007 - 09:17

4: [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(HUD, 60, "[%s] Level: %i XP: %i", CLASSES[PlayerClass[id]], PlayerLevel[id], PlayerXP[id]) // line 709
message_begin(MSG_ONE, msgtext, {0,0,0}, id)
write_byte(0)
write_string(HUD)
message_end()
new szName[32], szAuthId[32]
get_user_name(id, szName, 31)
get_user_authid(id, szAuthId, 31)
server_print("--MHO MOD-- [SHOWING HUD] for: %s AuthId: %s", szName, szAuthId)
//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?
__________________