HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Debugging Bananza

02-28-2009, 04:11 AM#1
Blacktastic
Thank you everyone for all of your help. This is new functional. It needs a bit of tweak, a bit of pizaaz, and a SimError for trying to cast the same spell you already are casting. Thank you so much. This is epic.
02-28-2009, 06:57 AM#2
snowtiger
What are you trying to do with this?
Collapse JASS:
 loop
            exitwhen i > 50
            set D.CastbarGreen[i] = D.CastbarGreen[i-1] + D.CastbarGreen[1]
            set D.CastbarGray[i] = D.CastbarGray[i-1] + D.CastbarGray[1]
            set i = i + 1
 endloop
As far as I see, you're creating huge strings. I thought I read somewhere that they can cause crashes, not sure though.

If I understand your code, D.CastbarGreen[50] is going to be something like "green1green1green1green1green1... ...green1green1". Maybe even to long for a string.

EDIT: Closer reading shows me that it's not green1green1... but simple 111111111111111111111111111111111111111... is that correct?
02-28-2009, 07:30 AM#3
Blacktastic
When shrunken to a small size, a series of l's resembles a perfect bar.

I have fixed alot of issues. Updating main post with the next issue.