471,044 Members | 927 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,044 software developers and data experts.

Syntax Error? Help Plz

got a question for anyone that can help......im writin a game program for my nephew, and came across a problem, I wrote,
if((TR=='a')&&(dresser_pick=='b')) || ((TR=='a')&&(dresser_pick2=='b'))
it says i need a ; b4 the || but i no thats not rite, can anyone help, i dont think the syntax is wrong but mayb it is and jus forgettin somethin

THX, ~Andrew~
Jul 7 '06 #1
1 1181
You are simply missing one parenthesis. Replace the line with following line :

if(((TR=='a')&&(dresser_pick=='b')) || ((TR=='a')&&(dresser_pick2=='b')))
Jul 7 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Steve | last post: by
1 post views Thread by Donald Canton | last post: by
3 posts views Thread by Manuel | last post: by
1 post views Thread by Hari Sekhon | last post: by
7 posts views Thread by Josh | last post: by
5 posts views Thread by Banfa | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.