end "expected to close function" that is already closed...
0 replies, posted
this is the code in question:
[lua]function ENT:ShootGun()
self:FireShell()
self:EmitSound("vehicles/tank_readyfire1.wav",400,100)
self.loading = true
if self.loading == true then
end
else
timer.Simple( 2.5, function()
self.loaded = true
self.loading = false
end)
end
[/lua]
the error
[code]init.lua:141: 'end' expected (to close 'function' at line 135) near 'else'
[/code]
This is the second time this happens , I have no idea what's wrong or why the hell it's happening. Help?
[b]EDIT: Nevermind , solved.[/b]
Sorry, you need to Log In to post a reply to this thread.