Hello,
So my problem is as following:
PHP Code:
L 12/20/2011 - 18:17:01: [AMXX] Displaying debug trace (plugin "DiabloModNew.amxx")
L 12/20/2011 - 18:17:01: [AMXX] Run time error 4: index out of bounds
L 12/20/2011 - 18:17:01: [AMXX] [0] DiabloModNew.sma::Give_Xp (line 1615)
L 12/20/2011 - 18:17:01: [AMXX] [1] DiabloModNew.sma::roundboost (line 976)
L 12/20/2011 - 18:17:01: [AMXX] [2] DiabloModNew.sma::RoundStart (line 956)
L 12/20/2011 - 18:17:01: [AMXX] Displaying debug trace (plugin "DiabloModNew.amxx")
L 12/20/2011 - 18:17:01: [AMXX] Run time error 4: index out of bounds
L 12/20/2011 - 18:17:01: [AMXX] [0] DiabloModNew.sma::write_hud (line 1822)
L 12/20/2011 - 18:17:01: [AMXX] [1] DiabloModNew.sma::UpdateHUD (line 1842)
Line 1822 is the following line:
PHP Code:
format(tpstring,1023,"Class: %s Level: %i (%0.0f%s) Item: %s", Race[player_class[id]], player_lvl[id], perc,"%%",player_item_name[id])
So I figured that the problem is the Class: part. The Race[player_class[id] (after deleting the item and the perc part).
It has the following arrays:
PHP Code:
new Race[5][18] = { "None","Mage","Paladin","Ninja","Demon Hunter" }
new player_class_lvl[33][5]
Does anyone know what could be the problem?
*Note: I am trying to build a new customized Diablo mod and have deleted a few races. The problem occured after deleting them. I thought I was doing it the correct way as I also know how to add them I thought it would be the exact opossosit.