Extremely new to lua, why doesnt this work?
Code
function Legion.flashlight()
if !( Legion.Bools[ "flashlight" ] ) then
timer.Destroy("spammer")
timer.Create("spammer", 0.1, 0, function())
RunConsoleCommand("impulse 100")
end)
end)
if !( Legion.Bools[ "flashlight" ] ) then
timer.Destroy("spammer")
timer.Create("spammer", 0.1, 0, function())
RunConsoleCommand("impulse 100")
end)
end)
------------------------------------
This is the error I get.
[ERROR] lua/legion.lua:252: unexpected symbol near ')'
1. unknown - lua/legion.lua:0
