| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. : ) |
|
#2
|
|||
|
|||
|
It's talking about the comma after MOVER_POS1ROTATE.
if ( targ->use && ( targ->moverState == MOVER_POS1 || targ->moverState == MOVER_POS1ROTATE ) ) |
|
#3
|
|||
|
|||
|
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. : )
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Parse Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|