Terminal Hacker Error -- Resolved

I keep having this error. As soon as I add the “else” and finish that section, the end brackets on “if” and “else if” get red squiggles after them that I can’t seem to get rid of. When I hover over the error, it just tells me that it was expecting an end bracket…at the end bracket. Does anyone know why this is happening and what I can do to fix it?

Hi Rafael,

Your issue are the semi-colons you have at the end of the ‘if’ and ‘else if’ lines, these shpuldnt be there. Delete those and your error will go away.

Please note, it’s better to copy/paste your code and apply the code fencing characters, rather than using screenshots. Screenshots are ideal for displaying specific details from within a game engine editor or even error messages, but for code, they tend to be less readable, especially on mobile devices which can require extensive zooming and scrolling.

You also prevent those that may offer to help you the ability to copy/paste part of your code back to you with suggestions and/or corrections, meaning that they would need to type a potentially lengthy response. You will often find that people are more likely to respond to your questions if you make it as easy as possible for them to do so.

Hope this helps :slight_smile:

See also;

That fixed it immediately, thank you Rob!

I’ll also keep that in mind for the future and paste my code from now on.

1 Like

You’re very welcome :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms