Hi there guys
I’ve wanted to learn lua for ages now, and I’ve finally thought about doing it now, and i’ve plunged myself into the gamemode part of it, yes I know your spose to have a decent knowlodge of lua and blah blah blah, but I thought if maybe I do this then I’ll learn it quicker and how the bits work
Well my problem is that in the gamemode i’ve done, I got the skeleton part from gmod.org and then I found a tutorial on the Gmod wiki, the guy who wrote it even said it might not work due to him not having tested it because of him not having Gmod
Now it keeps saying that it won’t load due to line 18 can any of you guys see what is wrong and help a newbie coder out
Thanks
team_1 = vgui.Create( "DButton", frame )
team_1:SetPos( frame:GetTall() / 2, 5 ) -- Placing it half way on the tall and 5 units in the horizontal
team_1:SetSize( 300, 300)
team_1:SetText( "Guest" )
team_1:DoClick function()
RunConsoleCommand( "team_1" )
end
EDIT:
Sorry, line 18 is where it has the DoClick function