if i do
id, message = rednet.recieve
print(message)
the message is printed (the message is "c1.fuel=100")
Now if i do
message = "return "..message
update = loadstring(message)
update()
It says the line with the "update()" is "attempt to call nil" and the program crashes.
I tried doing this too
dostring(message)
But it was giving me 2 different errors, sometimes it makes the same error as above and sometimes it gives me a indexing error at line 1.
Line 1 is this
c1 = { -- this line.
fuel = 0,
range = true,
currently = "doing nothing"
}
When it comes to normal lua im a pretty experienced coder. But not with CC