SetTeam a nil value

init.lua
[lua]function team_1( ply ) – Setting the team 1
ply:SetTeam(1) //Make the player join team 1
ply:Spawn()
end
concommand.Add(“team_1”, team_1)[/lua]

shared.lua

[lua]include( “systems/experience_system.lua” )
include( “systems/level_system.lua” )

–Gamemode Information
GM.Name = “Agamemode”
GM.Author = “shoaxthabeast”
GM.Email = “SylphandShoax@gmail.com
GM.Website = “N/A”

– First team SetUp
team.SetUp( 1 , “Human”, Color( 70, 250, 70, 255 ))

– Second team SetUp
team.SetUp( 2 , “Metro Cops”, Color( 70, 70, 250, 255 ))
[/lua]
**console error : **


 init.lua:70: attempt to call method 'SetTeam' (a nil value)

so basically that’s my problem my server tells me when i run team_1 in console

Edit: Nvm I fixed the problem myself…

как решил проблему?


(User was banned for this post ("Dumb bump" - Gran PC))