Re: [hlcoders] Basic Problem, many a hairs lost!

2002-01-18 Thread botman

 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




Re: [hlcoders] Basic Problem, many a hairs lost!

2002-01-18 Thread Philip Plante

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




Re: [hlcoders] Basic Problem, many a hairs lost!

2002-01-18 Thread Philip Plante

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




RE: [hlcoders] Basic Problem, many a hairs lost!

2002-01-18 Thread Ken Birdwell

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




Re: [hlcoders] Basic Problem, many a hairs lost!

2002-01-18 Thread Philip Plante

Its defined as 1000 and there is no ; on the end.
- Original Message -
From: Ken Birdwell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 18, 2002 6:18 PM
Subject: RE: [hlcoders] Basic Problem, many a hairs lost!


 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


___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




Re: [hlcoders] Basic Problem, many a hairs lost!

2002-01-18 Thread Philip Plante

Ok silly me there was a ; on the end, I love you guys thanks for helping my
stupidity.

Thanks!!!
Sarge_Spank
www.illicitstudios.com
- Original Message -
From: Ken Birdwell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 18, 2002 6:18 PM
Subject: RE: [hlcoders] Basic Problem, many a hairs lost!


 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


___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders