Posted 10 February 2015 - 06:35 PM
Hello guys.
I have 2 PCs, 1 is the Client, and the other is the SERVER.
In the Client i have:
In the SERVER i have:
Only the print("MSG"..msg) IS PRINTED on the screen
Like this:
My question is: how can i get only the First line ( [0] ) or the second line ( [1] ). Explaining: how can i get the separete values of the Table?
I have 2 PCs, 1 is the Client, and the other is the SERVER.
In the Client i have:
local T = {}
T[0] = ler2
T[1] = ler3
local Table = textutils.serialize(T)
rednet.send(servidorID, Table)
In the SERVER i have:
local id, msg = rednet.receive(4)
print("Msg:"..msg)
print("MSG1:"..msg[0])
print("MSG2:"..msg[1])
Only the print("MSG"..msg) IS PRINTED on the screen
Like this:
{
"123",
[0] = "Hayden",
}
My question is: how can i get only the First line ( [0] ) or the second line ( [1] ). Explaining: how can i get the separete values of the Table?
Edited on 10 February 2015 - 06:41 PM