Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 17,758 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Invalid Array Index Problem #129938
05/14/07 22:09
05/14/07 22:09
Joined: Aug 2003
Posts: 169
Tennessee, US
Ahriman Offline OP
Member
Ahriman  Offline OP
Member

Joined: Aug 2003
Posts: 169
Tennessee, US
I am having a problem within the engine...sometimes my code below will result in a Invalid Array Index Error. Which I know cant be right but maybe I am missing something. If anyone could please take a look and if you see something that would cause that problem give me a hand. I would really appreciate it. I can post more of the code if needed but these are the lines that will return the error so I just included this loop

Code:
 while(1)
{
CurSPartPos[SwordPartCount] = PrevSwordPartIn1.x + cos(CurSPartAng.pan) * cos(CurSPartAng.tilt) * SwordPartCount2;SwordPartCount += 1;
CurSPartPos[SwordPartCount] = PrevSwordPartIn1.y + sin(CurSPartAng.pan) * cos(CurSPartAng.tilt) * SwordPartCount2;SwordPartCount += 1;
CurSPartPos[SwordPartCount] = PrevSwordPartIn1.z + sin(CurSPartAng.tilt) * SwordPartCount2;SwordPartCount += 1;SwordPartCount2 += 0.1;

CurSPartFade[CurSPartFadeCount] = CurSPartFade[CurSPartFadeCount - 1] + CurSPartFadeAmount;
CurSPartFadeCount += 1;
if((SwordPartCount / 3) >= Partthistime){SwordPartCount = 0;CurSPartFadeCount = 0;break;}
}



Re: Invalid Array Index Problem [Re: Ahriman] #129939
05/15/07 00:16
05/15/07 00:16
Joined: Aug 2003
Posts: 169
Tennessee, US
Ahriman Offline OP
Member
Ahriman  Offline OP
Member

Joined: Aug 2003
Posts: 169
Tennessee, US
Nevermind I think I figured it out...


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1