What's your MAX_PARTICLES defined as?  Is there is ; at the end?  If so,
then that's the problem.

-----Original Message-----
From: Philip Plante [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 18, 2002 8:10 PM
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] Basic Problem, many a hairs lost!


It points to the for statement.  Thanks
----- Original Message -----
From: "Persuter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2002 5:21 PM
Subject: RE: [hlcoders] Basic Problem, many a hairs lost!


> I dunno if you typed this in, but if you copy/pasted it, it should be
>
> size = particle[i1].size / 2;
>
> not paricle[i1].size.
>
> And what line is the compiler pointing at?
>
> Persuter
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:hlcoders-
> > [EMAIL PROTECTED]] On Behalf Of Philip Plante
> > Sent: Friday, January 18, 2002 7:57 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [hlcoders] Basic Problem, many a hairs lost!
> >
> > Funny thing when I tried that it fixed the error.  So what if i paste
> the
> > whole func here:
> >
> > void ParticleSystem::Render(void)
> > {
> >  float size;
> >  Vector vert, temporg, pos, viewangles;
> >
> >  gEngfuncs.pTriAPI->RenderMode(kRenderTransAdd);
> >
> >
> >  cl_entity_t *player = gEngfuncs.GetLocalPlayer();
> >  if (!player) return;
> >
> >  vec3_t v_up, v_forward, v_right;
> >  gEngfuncs.GetViewAngles( (float *)viewangles );
> >  AngleVectors(viewangles, v_forward, v_right, v_up);
> >
> >  for(int i1 = 0; i1 < MAX_PARTICLES; i1++)
> >  {
> >  size = paricle[i1].size / 2;
> >  particle[i1].color[4] = particle[i1].alpha;
> >  // Draw code here
> > }
> > }
> >
> >
> > Thanks :)
> >
> > ----- Original Message -----
> > From: "botman" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, January 18, 2002 2:58 PM
> > Subject: Re: [hlcoders] Basic Problem, many a hairs lost!
> >
> >
> > > > Ok when I try to compile my particle engine code I am for
> somereason
> > > getting:
> > > > error C2143: syntax error : missing ')' before ';'
> > > > on this code:
> > > > void ParticleSystem::Render(void)
> > > > {
> > > >
> > > >  int i;
> > > >  while( i < MAX_PARTICLES)
> > > >  {
> > > > /*code*/
> > > > }
> > > > }
> > > >
> > > > But I dont know why the hell its doing that  Any clues why it is?
> > >
> > > I suspect your error is actually caused by a line further up in your
> > code.
> > > The compiler is just recovering from the error at the it is showing
> you.
> > > I'll bet if you comment out that whole block (all code shown), you
> will
> > > still get the error in something later on in the file.
> > >
> > > Jeffrey "botman" Broome
> > >
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list
> archives,
> > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to