Expected ',' or ')'

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BarneyAtAldi

So I have been working on a platformer and when I wrong this bit of code “func _on_land():” it said this Expected ‘,’ or ‘)’ and I don’t fucking know what to do I put a , and or a ) and I doesn’t do shit

Hi BarneyArAldi,
this error message can be confusing even to experienced programmers.
Unfortunately you didn’t provide enough context, code and - most importantly - the error message for any of us to understand what is going on.
You may want to tell us what the code the error occured in was supposed to do, what the function was and what error message you got said. In addition to that saying what you’ve already tried to solve this issue might be helpful for us as well.

Bimi124 | 2022-12-21 08:01

What code is on the line?

SteveSmith | 2022-12-21 11:03

For an error like this seeing the highlighted line and the ones above and below should probably be enough to understand what has happened. Perhaps think about what code is directly related to the error and the line it occurred in.

Bimi124 | 2022-12-21 13:40

:bust_in_silhouette: Reply From: iRad

For these kinds of errors, it is usually the previous line that you want to check.