This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
tball146's profile picture

help this is anoying...

Started by tball146, 19 March 2016 - 05:28 AM
tball146 #1
Posted 19 March 2016 - 06:28 AM
cmds = {…,…} print(cmds[1],cmds[2])
my output: bob,bob
but the second arguement in my command wasnt bob


probally the simplest thing to do…



off topic stuff

every tag is related to a certain block in the mod not what i am doing
pretty obvious to guess what one(computer)
cause i cannot put what what i want to do into words especially with the few options there is for tags
Anavrins #2
Posted 19 March 2016 - 06:35 AM
It only takes one "…"
cmds = {…}
is actually multiple variables that you can catch with local arg1, arg2 = …, similar to os.pullEvent.
The reason why you get two "bob" with {…, …} is the same as why arg1 and arg2 are the same with
local arg1 = …
local arg2 = …
Edited on 19 March 2016 - 05:51 AM
tball146 #3
Posted 19 March 2016 - 02:10 PM
okay rthank you