Spell Error... any help or ideas?

  • Lunar Engine v0.2.6 is out now! Download and check it out here. The map editor is also now fixed!

chagen

Member
Member
Jan 4, 2009
7
0
0
Gold
0
#1
frmIndex.lstIndex.AddItem i & ": " & Trim$(Spell(i).Name) this is the line screwing up all my spells

Getting a Runtime Error 9 on Spell(i).name = SubScirpt out of range
 

chagen

Member
Member
Jan 4, 2009
7
0
0
Gold
0
#3
:p yeah... about that....I have really been working on this for a week and have looked the forums all over to get it working... nothing at all
 
M

Matt

Guest
Guest
#6
<div class="bbWrapper">Look at the order in which it's sent. Also, make sure the spell name is actually being sent in the first place. I've seen this problem several times, but I don't remember what the issue was.</div>
 

mustorze

Member
Member
Jan 9, 2008
35
0
0
Gold
0
#9
The "For" Of "i" unconfigured correct Use:
for i = 1 to max_spells
.................................................