Need help with 1 line of this code

Hi, I tried it and it’s not working, as I said idk how to code.

If I replace the old error line with your new one, I get another error saying:

There are 4 original errors, the same error under the question mark on 4 different lines, not just the one. So do you think this error is because the line that is above it had the same error?.. example: