Code help please help i don’t know what i’m doing

Please help me fix this, it’s the last thing i need fixed and i don’t know how to do it when i hover over the else that is highlighted red a message pops up saying “expected expression, got “else” in indented block” help with this please and thank you

it’s expecting something in the if(): statement line 156… if what?

The else and subsequent block needs to be un-indented. The else may not be needed depending on what is in your if statement.

Regarding your code adjustments:

  1. To assist you better, could you please provide more details by including the complete error or warning codes you encountered?
    Descriptive information helps us to pinpoint the issue accurately,

  2. For line 156, if your code snippet contains just if ():
    and ln 158 contains 'else: ’
    Line 158 needs to be deleted, and line 156 needs to be change to ‘else if (STATEMENT):’, “INSERT STATEMENT HERE” is the specific condition or statement you intend to check. This adjustment will help in implementing the intended logic in your code.

i don’t even know what to put in my if statement i just started and i’m confused

I tried doing what you did and more errors popped up, sorry but i just started and i’m really confused and don’t know what i’m doing but here’s a picture of the error code

Hey, sorry for the late reply.

Could you please share the code via copy/paste? That way, I can assist you more effectively by making the necessary modifications in chat

If you see red underlined elements in your code, it’s a good idea to check for these common issues to maintain code quality and correctness.
else: is an error defined with a red underline

Here’s the code snippet that needs to be worked on:

if (/* condition */) {
    // Code to execute if the condition is true
} else {
    Player::player::void~Logger.Print("=== GotRandom function Activated ===");
}