Raised This Month: $ Target: $400
 0% 

Index out of Bounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
egbertjan
Senior Member
Join Date: Mar 2007
Location: The Netherlands
Old 12-20-2011 , 12:34   Index out of Bounds
Reply With Quote #1

Hello,

So my problem is as following:
PHP Code:
L 12/20/2011 18:17:01: [AMXXDisplaying debug trace (plugin "DiabloModNew.amxx")
L 12/20/2011 18:17:01: [AMXXRun time error 4index out of bounds 
L 12
/20/2011 18:17:01: [AMXX]    [0DiabloModNew.sma::Give_Xp (line 1615)
L 12/20/2011 18:17:01: [AMXX]    [1DiabloModNew.sma::roundboost (line 976)
L 12/20/2011 18:17:01: [AMXX]    [2DiabloModNew.sma::RoundStart (line 956)
L 12/20/2011 18:17:01: [AMXXDisplaying debug trace (plugin "DiabloModNew.amxx")
L 12/20/2011 18:17:01: [AMXXRun time error 4index out of bounds 
L 12
/20/2011 18:17:01: [AMXX]    [0DiabloModNew.sma::write_hud (line 1822)
L 12/20/2011 18:17:01: [AMXX]    [1DiabloModNew.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.

Last edited by egbertjan; 12-20-2011 at 12:48.
egbertjan 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 11:49.


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