Script error 3104: Dangling `=` assignment with no expressions or empty braced block `{}` on its right hand side.

PopulateTeamsAndPlayers(): void=

This is c++?

Check if you are missing some ; in lines above, or some other syntax errors.

There has to be content in the function as well, having just the definition will result in an error.

 PopulateTeamsAndPlayers(): void=
        Print("Beginning to poulate players")
            AllPlayers := GetPlayspace().GetPlayers()
            for (Agent : AllPlayers, TeamPlayer := Player[Agent], FortCharacter := TeamPlayer.GetFortCharacter[]):
                if (set PlayerMap[TeamPlayer] = 0, WeaponTier := PlayerMap[TeamPlayer]):
                     Print ("Assigend Player to PlayerMap with tier {WeaponTier}")
                     FortCharacter.EliminatedEvent().Subcribe(OnPlayerEliminated) 

this is the whole line of code

 PopulateTeamsAndPlayers(): void= 
        Print("Beginning to poulate players")
            AllPlayers := GetPlayspace().GetPlayers()
            for (Agent : AllPlayers, TeamPlayer := Player[Agent], FortCharacter := TeamPlayer.GetFortCharacter[]):
                if (set PlayerMap[TeamPlayer] = 0, WeaponTier := PlayerMap[TeamPlayer]):
                     Print ("Assigend Player to PlayerMap with tier {WeaponTier}")
                     FortCharacter.EliminatedEvent().Subcribe(OnPlayerEliminated) 

this is the whole thing i need the rest seems fine just that void = next to populateTeamsAndPlayers is showing error rest of the void='s dont show this error

PopulateTeamsAndPlayers(): void= 
        Print("Beginning to poulate players")
            AllPlayers := GetPlayspace().GetPlayers()
            for (Agent : AllPlayers, TeamPlayer := player[Agent], FortCharacter := TeamPlayer.GetFortCharacter[]):
                if (set PlayerMap[TeamPlayer] = 0, WeaponTier := PlayerMap[TeamPlayer]):
                     Print ("Assigend Player to PlayerMap with tier {WeaponTier}")
                     FortCharacter.EliminatedEvent().Subcribe(OnPlayerEliminated)    

Hi.
I don’t get that error when I checked your code, but I did notice that “Player” with a capital P is not correct. You mean to specify the data type “player,” which is lower case. Other than that, I don’t see why this wouldn’t work.

Hope this helps.

(post deleted by author)