This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
AlexiGhost's profile picture

I've got a probllem with rednet

Started by AlexiGhost, 01 August 2016 - 09:18 PM
AlexiGhost #1
Posted 01 August 2016 - 11:18 PM
Hi, I've got a problem with my code, can you check it for me ?
The error is on my server computer, it's : "rednet:39:Expected number"

senderId, message = rednet.receive()
print("A message have been send by" .. senderId)
print("message : "..message)
if message == "checkInfos" then
  print("command exist .. return statement")
  rednet.send(senderID, "ready") -- Error here
  print("launch checkInfos")
  shell.run("/SDE/serverFunctions/checkInfos")
elseif...

All the codes used :

- sde.server : http://pastebin.com/cXY1zAX6
- test (sde.client) : http://pastebin.com/0g2evxNT
Dog #2
Posted 02 August 2016 - 01:27 AM
senderId and senderID are not the same. Lua is case sensitive.
AlexiGhost #3
Posted 02 August 2016 - 01:38 AM
Oh thanks a lot guy, I think to it but I've don't found the error.

Well I've finished my programs, I really want put them here but there is a lot of files…
Why pastebin doesn't take folders ?!

Anyway if you know a way for me to easily share my programs with you tell me ;)/>/>

Well, forget what I've say my programs is a basic version of "Wire" create by Dog :D/>/>
my version just work with disk who define your security level and allow you or not to pass.