Solved List
- team.SetUp
- StackOverflow (Just Reset server)
Issue List
- N/A
UNSOLVED
SOLVED
[CODE][ERROR] gamemodes/simplistic/gamemode/shared.lua:8: attempt to call field 'Setup' (a nil value)
1. unknown - gamemodes/simplistic/gamemode/shared.lua:8
2. include - [C]:-1
3. unknown - gamemodes/simplistic/gamemode/cl_init.lua:1
GM.Name = "Test" --gamemode name
GM.Author = "*******" --Author
GM.Email = "N/A"
GM.Website = "N/A"
DeriveGamemode("sandbox") --Pre made Function input(Crucial)
team.Setup(1, "User", Color(125, 125, 125, 255)) --Guest team
team.Setup(2, "Staff", Color(255, 255, 255, 255),false) --Staff Team
team.Setup(3, "Joining", Color(0, 0, 0, 255)) -- Joining
[/CODE]
[CODE]
[ERROR] gamemodes/sandbox/gamemode/cl_init.lua:86: stack overflow
1. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
2. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
3. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
4. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
5. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
6. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
7. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
8. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
9. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
10. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
11. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
12. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
13. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
14. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
15. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
16. PostRenderVGUI - gamemodes/sandbox/gamemode/cl_init.lua:86
include("shared.lua") -- Loading Shared lua
function set_team()
local Ready = vgui.Create("DFrame") -- Ready is defined as DFrame
Ready:SetPos(ScrW() / 2, ScrH() / 2)
Ready:SetSize(175,75)
Ready:SetTitle("Test Message")
Ready:SetVisible(true)
Ready:SetDraggable(false)
Ready:ShowCloseButton(true)
Ready:MakePopup()
local ans = vgui.Create('DButton', Ready) -- Defined ans as DButton
ans:SetPos(20,25)
ans:SetSize(140,40)
ans:SetText("Test Button")
ans.DoClick = function()-- Error began here
Ready:Close()
end)
end
concommand.Add("s_start", set_team)[/CODE]
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/team/SetUp]team.SetUp[/url], capital U
[QUOTE=Neat-Nit;47322980][img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/team/SetUp]team.SetUp[/url], capital U[/QUOTE]
Wow i feel stupid I didnt see that thanks <3... Im going to hope this stays open so i can Update the posts when i need help
It doesn't get locked unless you click the Solved button in the top-left corner :eng101:
[QUOTE=Neat-Nit;47323080]It doesn't get locked unless you click the Solved button in the top-left corner :eng101:[/QUOTE]
Once again i feel stupid
Nah, that's just something you learn by being here enough time, nothing to feel stupid about ;)
[editline]15th March 2015[/editline]
You should make a new post for a new problem, people don't usually see the top post.
[editline]15th March 2015[/editline]
I commonly get stack overflow errors when I edit code too much while the server/game is running. Try restarting it when that happens, it usually solves it.
Sorry, you need to Log In to post a reply to this thread.