Secret Knock Trouble

I finally combined the codes and it did not work. got compiling error. I am unable to post the code because it says more than 9000 chars?? please advice me how to share the code ?

here is what I did:
On the secret knock code I pasted parts from the motor control with limit switches code. however the error coming is : expected unqualified-id before 'void'

Goldenshuttle:
I am unable to post the code because it says more than 9000 chars?? please advice me how to share the code ?

You could attach it.

And / or, you could trim the code down to the smallest version that still exhibits the problem. (And you never know, in so doing you might fix it.)