Engine:CCMD lua.lua edit: Difference between revisions

Line 40: Line 40:
<kua>
<kua>
contexct lua
contexct lua
// first
function bob(s) print(s) end
function bob(s) print(s) end
bob("fred")
bob("fred")
> fred
> fred
 
</kua>
// second
<kua>
function bob(s)  -- Lua syntax error!!!
function bob(s)  -- Lua syntax error!!!
   print(s)
   print(s)
end
end
bob("james")
bob("james")
 
</kua>
// third
<kua>
run `function bob(s)  -- Lua syntax error!!!
run `function bob(s)  -- Lua syntax error!!!
   print(s)
   print(s)