Jump to content




[Error] Login Server Errors


  • You cannot reply to this topic
9 replies to this topic

#1 blackplage

  • New Members
  • 2 posts

Posted 16 August 2012 - 01:12 AM

Im copying the code (and checking it) on the wiki to make a login system for multiple users

in the end i get this error

bios:206: [string "Server":19: '=' expected

can someone tell me what this means?

Oh, and my coding:
Spoiler


#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 16 August 2012 - 01:20 AM

I think you forgot the comparison value for firstCycle. You are not comparing it to anything.

#3 inventor2514

  • Members
  • 63 posts

Posted 16 August 2012 - 02:12 AM

fuction bootUp() should be function bootUp(); just a simple typo.

#4 blackplage

  • New Members
  • 2 posts

Posted 16 August 2012 - 02:36 AM

View Postinventor2514, on 16 August 2012 - 02:12 AM, said:

fuction bootUp() should be function bootUp(); just a simple typo.
I double checked that with what i have typed out on the server computer and its correct there, i just messed up when i copied it from minecraft to here :I

#5 Lettuce

  • Members
  • 210 posts
  • LocationIn your fridge.

Posted 16 August 2012 - 02:47 AM

rednet.open(modemSide) is invalid. "left" "right" "top" or "back" must be declared, and must be in quotes. Effectively, that computer doesn't even know what a "modem" is, let alone what side it's on. If you're about to say "I do declare what side it's on in the minecraft code," then give us the real code, or we're useless on this end.

#6 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 16 August 2012 - 02:54 AM

Syntax looks good, are you still getting the error?

The only thing I notice with the code is you dont need the commented lines below
users = { } -- this is redundant remove it, you are declaring it on the next line
users = { blackplage, SwatChan, Guest }
passwords = { } -- this is redundant remove it, you are declaring it on the next line
passwords = { blackplage, SwatChan, Guest }
senders = { } -- this is redundant remove it, you are declaring it on the next line
senders = { 85, 87, 88, 89, 90 }

View PostLettuce, on 16 August 2012 - 02:47 AM, said:

rednet.open(modemSide) is invalid. "left" "right" "top" or "back" must be declared, and must be in quotes. Effectively, that computer doesn't even know what a "modem" is, let alone what side it's on. If you're about to say "I do declare what side it's on in the minecraft code," then give us the real code, or we're useless on this end.

He has this near the top. It should work.

local modemSide = "top"


#7 Lettuce

  • Members
  • 210 posts
  • LocationIn your fridge.

Posted 16 August 2012 - 03:17 AM

How about near the bottom,
rednet.send(senderId, "Not Valid'0
you used a single quote mark instead of a double, leaving an incomplete string, a seemingly random 0, and you forgot to close your parenthesis. That'll break a program.

ALSO:

I've never used string variables, luanub. Do you have to put quotes around the variable? Because I know if you declare a side it's:
rednet.open("top")

with quotes.

#8 inventor2514

  • Members
  • 63 posts

Posted 16 August 2012 - 03:50 AM

Try adding quotes around the users and passwords table elements.
users = { "blackplage", "SwatChan", "Guest" }
passwords = { "blackplage", "SwatChan", "Guest" }


#9 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 16 August 2012 - 04:05 AM

View PostLettuce, on 16 August 2012 - 03:17 AM, said:

ALSO:

I've never used string variables, luanub. Do you have to put quotes around the variable? Because I know if you declare a side it's:
rednet.open("top")

with quotes.

No you should never have to put quotes around a var, only strings. I usually do this for my rednet, and sometimes bundled cables.
local sSide = "right"
rednet.open(sSide)

or

rs.setBundledOutput(sSide, colors.orange)

It looks inventor2514 found the issue. Without having the quotes around the strings in the table it is looking for vars with those names instead of doing the string comparison.

#10 ardera

  • Members
  • 503 posts
  • LocationGermany

Posted 16 August 2012 - 08:30 AM

EDIT: Sorry, didn't read the 5th post...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users