help with fretta

I’m using fretta to make my gamemode and I removed 2 of the teams and renamed them but when I click on the button to join the team it says “team unassigned” or something. is there something I forgot? here’s the code:
[lua]TEAM_SPETZNAZ = 1
TEAM_RANGERS = 2

/---------------------------------------------------------
Name: gamemode:CreateTeams()
Desc: Set up all your teams here. Note - HAS to be shared.
---------------------------------------------------------
/
function GM:CreateTeams()

if ( !GAMEMODE.TeamBased ) then return end

team.SetUp( TEAM_SPETZNAZ, "Spetznaz", Color( 255, 0, 0 ), true )
team.SetSpawnPoint( TEAM_SPETZNAZ, "info_player_terrorist" ) // The list of entities can be a table

team.SetUp( TEAM_RANGERS, "U.S. Rangers", Color( 0, 0, 255 ) )
team.SetSpawnPoint( TEAM_RANGERS, "info_player_counterterrorist", true )

team.SetUp( TEAM_SPECTATOR, "Spectators", Color( 200, 200, 200 ), true )
team.SetSpawnPoint( TEAM_SPECTATOR, "info_player_start" )
team.SetClass( TEAM_SPECTATOR, { "Spectator" } )

end[/lua]

still haven’t gotten an answer

[editline]05:00PM[/editline]

this is really getting annoying, if I can’t join a team, then I can’t test any of my shit.

does GAMEMODE.TeamBased = true?

yeah

[editline]05:56PM[/editline]

oh, and when I go into console when I start a game, it says something like “zlib stopped a concommand before player spawned”

could you post the console from when the gamemode starts? Maybe there is an addon conflicting.

ok, I’ll post it in a minute.

[editline]06:07PM[/editline]

RunConsoleCommand blocked - sent before player spawned (ZLib_Installed)
it also says “unknown command “seensplash””

I think something relating to the “team unassigned” is what he was looking for. Do you get any lua errors printed in the console or Gamemode couldn’t load?

Are you including shared.lua in both the init and cl_init?

yes

still having this problem

Dont bump after 3 hours.

Try moving all of your addons out of your addons folder, then run it.

Is the code shared?:downs:

Oops didn’t see that, downs on me:saddowns: