Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Engine:CCMD lua.lua edit: Difference between revisions
Engine
Talk
← Older edit
Newer edit →
Engine:CCMD lua.lua edit
(source)
Revision as of 21:51, 18 October 2023
307 bytes removed
,
18 October 2023
→Details
Revision as of 21:51, 18 October 2023
(
view source
)
Bear
(
talk
|
contribs
)
(
→Details
)
← Older edit
Revision as of 21:51, 18 October 2023
(
view source
)
Bear
(
talk
|
contribs
)
(
→Details
)
Newer edit →
Line 36:
Line 36:
context lua
context lua
run `print(1+2);print(1+2)`;exit
run `print(1+2);print(1+2)`;exit
</kua>
Thus the first one works, the second doesn't, third does:
<kua>
context lua
function bob(s) print(s) end
bob("fred")
> fred
</kua>
<kua>
function bob(s) -- Lua syntax error!!!
print(s)
end
bob("james")
</kua>
<kua>
run `function bob(s) -- Lua syntax error!!!
print(s)
end`
bob("alan")
> alan
</kua>
</kua>
Bear
Bureaucrats
,
Interface administrators
,
Administrators
49
edits