• SetTeam a nil value
    1 replies, posted
[b]init.lua[/b] [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] [b]shared.lua[/b] [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] [b]console error : [/b][code] init.lua:70: attempt to call method 'SetTeam' (a nil value)[/code] so basically that's my problem my server tells me when i run team_1 in console [b]Edit:[/b] Nvm I fixed the problem myself...
как решил проблему? [highlight](User was banned for this post ("Dumb bump" - Gran PC))[/highlight]
Sorry, you need to Log In to post a reply to this thread.