The lua compiler doesn't accept continue keyword...
The lua compiler doesn't accept continue keyword...
Obviously. continue is gmod specific, an addition by garry. If he told someone how he did it, they could add it to luac.
I thought it was a patch...
http://lua-users.org/lists/lua-l/2009-06/msg00331.html
That may be it, I just assumed garry wrote it. I don't know how to apply it though, and don't really have the time to figure it out.
If you compile lua with the -s flag does it make it completely impossible to decompile and get original source, or does it just make it a huge pain in the ass?
Sorry to bump this thread, but this doesn't make any sense:
The include shows that the file exists, while the runclua function says it's an invalid path.Code:] lua_run_cl runclua("falcoprivate/11antilag.lua") Not running file falcoprivate/11antilag.lua (invalid path) ] lua_run_cl include("falcoprivate/11antilag.lua") addons\falco's small scripts\lua\falcoprivate\11antilag.lua: unexpected end in precompiled chunk
It only seems to load files in garrysmod/lua, not inside addons, since the module doesn't use Source's filesystem API.
I just saw it, thanks though.
Does this still work? And what parts don't work?
It does.