Engine:CCMD lua.lua edit: Difference between revisions

Line 37: Line 37:
run `print(1+2);print(1+2)`;exit
run `print(1+2);print(1+2)`;exit
</kua>
</kua>
Thus, when run directly in the context the first one works and the second one doesn't, third does:
Thus the first one works, the second doesn't, third does:
<kua>
<kua>
contexct lua
context lua
function bob(s) print(s) end
function bob(s) print(s) end
bob("fred")
bob("fred")