Inside3D!
     

Using arrays?

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
Downsider



Joined: 16 Sep 2008
Posts: 478

PostPosted: Fri Jun 18, 2010 6:46 pm    Post subject: Using arrays? Reply with quote

Why does this:
Code:

.float   fTimes[32];
.string   fEvent[32];

...

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


Result in this:



I've never used arrays in QC before and this is making me upset.
Back to top
View user's profile Send private message
Downsider



Joined: 16 Sep 2008
Posts: 478

PostPosted: Fri Jun 18, 2010 7:52 pm    Post subject: Reply with quote

Ah, got it, for some reason FTEQCC likes it's arrays to be enclosed in parenthesis.
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Fri Jun 18, 2010 9:36 pm    Post subject: Reply with quote

Yeah, its a bug in fteqcc. Future versions won't need the extra () around the field[ofs].
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group