C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 13th, 2005, 06:53 AM
MatrixsurferX MatrixsurferX is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 12 MatrixsurferX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 52 m 26 sec
Reputation Power: 0
Unhappy Parse Error

HI! I get a parse error before ")" token when I compile my code. This part of Q3 game code and I am working on a mod for it. The code below
was already there I added the || targ->moverState == MOVER_POS1ROTATE, part which is part of more code related to the door code to open like a normal door say like at your house.

if ( targ->s.eType == ET_MOVER ) {
if ( targ->use && ( targ->moverState == MOVER_POS1 || targ->moverState == MOVER_POS1ROTATE, ) ) {
targ->use( targ, inflictor, attacker );
}
return;
}

The actual error is on this line:
if ( targ->use && ( targ->moverState == MOVER_POS1 || targ->moverState == MOVER_POS1ROTATE, ) ) {

Any thoughts as to what it is refernecing to? Thanks in advance for your assistance. : )

Reply With Quote
  #2  
Old January 13th, 2005, 01:51 PM
marmo marmo is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 37 marmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 20 sec
Reputation Power: 5
It's talking about the comma after MOVER_POS1ROTATE.

if ( targ->use && ( targ->moverState == MOVER_POS1 || targ->moverState == MOVER_POS1ROTATE ) )

Reply With Quote
  #3  
Old January 13th, 2005, 03:39 PM
MatrixsurferX MatrixsurferX is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 12 MatrixsurferX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 52 m 26 sec
Reputation Power: 0
Talking Thankyou

Thanks Marmo! This very helpful, after all I am a newb coder but hey I am trying to be better! Reading C for Dummies and asking questions. : )

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Parse Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT