What’s wrong with my code?

Hi , Looks like you have a syntax error in your code. The error message indicates that there is a dangling ‘=’ assignment with no expressions or empty bracket block ‘{}’ on its right-hand side.

Here’s your code with a potential correction:

else:
    (Player:player):void=
    Logger.Print("=== GetRandom Function Activated ===")
    RandomNum:int = GetRandomInt(1, 3)
    Logger.Print("Picked Random Number. Number selected is {RandomNum}")
    set randomNumber = RandomNum
    if (randomNumber == 1):
        set winA = true
        TeleA.teleport(Player)
        Logger.Print("=== Winner A  ===")
    if (randomNumber == 2):
        set winB = true
        TeleB.Teleport(player)
        Logger.Print("=== Winner B ===")
    if (randomNumber == 3):
        set winC = true
        TeleC.Teleport(player)
        Logger.Print("=== Winner C ===")

Here are the changes I made:

  1. Replaced = with == in the if conditions to check for equality.
  2. Added colons : at the end of if conditions.
  3. Fixed the indentation to make the code structure clear.

Make sure to adapt the changes according to the specific syntax rules of Unreal Editor for Fortnite.
I hope I helped. He would be grateful if you left Subscriptions on my YouTube channel. Regards
YT:https://www.youtube.com/@grawik_ingraw