LCD Help

I am trying to create a simple code chooser program using the LCD. I used the sample program as a template. Right now I am getting these errors:
Error:Unexpected ‘;’ during parsing, line 92
Error:Unexpected ‘else’. Ignored, line 93

I am not sure how to fix it.

Thanks!
Copy of Untitled document.pdf (71.8 KB)

You have a


count = --;

statement when count is 1. The = sign is not needed and is probably causing your errors.

Hey, doing that fixed the errors, however no matter what routine I select, it always runs the 22 point right. Even if I select 22 point left or any of the 7 point routines it still only runs the 22 point right. Thanks for the help.

Where do you call out the count = 0? If that’s in the pre-auton, then that’s why it defaults to one auton code. I had that problem for awhile, and did an entire tournament without figuring it out xD
Edit: I see that you did put “int count = 0” in preauton. Move it to the global level to fix it.

That fixed it. Thanks!

No problem