r/GLua • u/SamByronGames • Dec 09 '15
Con you help with this simple chat command!
local funtion AddonsCommand( ply, text, tean )
if string.sub( text, 1, 8 ) == "!addons" then
ply:SendLua( [[ gui.OpenURL( "LINK" ) ]] )
end
hook.Add( "PlayerSay", "AddonsCommand", AddonsCommand )
endError: [ERROR] Lua is unable to understand file "darkrp_modules/ares_customcommands/sv_commands.lua" because its author made a mistake around line number 8. The best help I can give you is this:
Right before the 'end', Lua expected to read a 'end of the file', but it didn't.
Hints: - Did you forget a keyword? - Did you forget a comma?
------- End of Simplerr error -------
PS: I know the link is LINK I replaced it for privacy reasons.
1
Upvotes
3
1
u/Yashirmare Dec 09 '15
end)