Posted 24 July 2016 - 12:25 AM
Hello,
I'm using computer craft for minecraft 1.7.10.
I got this :
Thanks for the help !
I'm using computer craft for minecraft 1.7.10.
I got this :
function var.Pos:load(data)
print(data.x) -- Print "2" as excepted
foo = unpack(data)
print(type(foo)) -- Print nil
print(foo.x) -- Error of course
end
Second try :
function var.Pos:load(data)
print(data.x) -- Print "2" as excepted
foo = table.unpack(data) -- Modification here
print(type(foo)) -- Print nil
print(foo.x) -- Error of course
end
I don't understand why foo isn't filled with anything here…Thanks for the help !