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

rednet:53: Expected number

Started by Nic, 30 May 2014 - 03:26 AM
Nic #1
Posted 30 May 2014 - 05:26 AM
So im righting a login program where i have a server computer but im geting the error "ednet:53: Expected number" i know its not the prettiest but it a work in progress

her is my code:

server: http://pastebin.com/HngPER89

client: http://pastebin.com/biKS9PSK
Bomb Bloke #2
Posted 30 May 2014 - 05:41 AM
At line four of the client we have:

local server_id = "14" -- the server id --

That saves the text "14" as a string ("a collection of characters") in the variable "server_id".

You want:

local server_id = 14 -- the server id --