Forum

Using arrays?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Using arrays?

Postby Downsider » Fri Jun 18, 2010 6:46 pm

Why does this:
Code: Select all
.float   fTimes[32];
.string   fEvent[32];

...

Line 21: self.fTimes[i] = 0;


Result in this:

Image

I've never used arrays in QC before and this is making me upset.
User avatar
Downsider
 
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Postby Downsider » Fri Jun 18, 2010 7:52 pm

Ah, got it, for some reason FTEQCC likes it's arrays to be enclosed in parenthesis.
User avatar
Downsider
 
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Postby Spike » Fri Jun 18, 2010 9:36 pm

Yeah, its a bug in fteqcc. Future versions won't need the extra () around the field[ofs].
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest