Jump to content




Rednet - Sending a multidimensional array


  • You cannot reply to this topic
1 reply to this topic

#1 unobtanium

  • Members
  • 505 posts

Posted 12 June 2013 - 09:26 AM

Hello everyone,

i am searching quiet a while now, but i didnt even found an answer if this is even possible or not.
I want to send an array like the following over rednet:

item1 = { 1, 2, {10, 11 }, 4, 5 }

item2 = { {1, 2, 3, 4}, {1, 2, 3, 4}}

I know about un-serialize, but for me this does not work :s
Maybe i am doing something wrong...

Thank you!
unobtanium

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 12 June 2013 - 09:30 AM

You would have to serialize the table before you can unserialize it. Check out the textutils API page on the wiki.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users