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

Think I made a Server Program..returns 7?

Started by xxrevanxx, 05 January 2013 - 07:52 PM
xxrevanxx #1
Posted 05 January 2013 - 08:52 PM
So i am trying to code a server which will wait for a rednet message check the message to see if it works with the tables i set up and then sends confirmation to the computer. When i run the program all it does is print 7 on the computer then ends the program. What is the meaning of this O.o?

code: here
Luanub #2
Posted 05 January 2013 - 08:59 PM
This line

elseif message == (logon[3]..":"..password[3] then -- your missing the )

elseif message == (logon[3]..":"..password[3]) then
xxrevanxx #3
Posted 05 January 2013 - 09:06 PM
ok that worked but why did it say 7 doesn't it normally give a ")" expected to end error?
Luanub #4
Posted 05 January 2013 - 09:15 PM
I'm not sure why but it does that with some of the errors. I don't think that there is any significance in the number 7, the number seems to be random. At times I've seen it be the offending line number but that is not always the case. Line 7 was the start of the if block that the error was in, not sure if that means anything or not.