Posted 05 November 2012 - 12:28 PM
I am trying to write a code for a redpower frame elevator that knows what floor it is at and uses a computercraft computer to control what floor it goes to. Everything else is set up fine but when i send a floor number to the elevator server it send back an error "rednet:350: string expected".
How do i get rednet to realize i am receiving a number and not a string?
Here is part of the code below that i am using, does everything look alright, and/ or should i post the rest of the code?
send code
receive code
How do i get rednet to realize i am receiving a number and not a string?
Here is part of the code below that i am using, does everything look alright, and/ or should i post the rest of the code?
send code
posChange = 54
rednet.send(server, posChange, true)
receive code
senders, posChange, distance = rednet.receive()