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

Whats bios 338?

Started by Spongy141, 22 November 2012 - 07:07 AM
Spongy141 #1
Posted 22 November 2012 - 08:07 AM
I keep getting this message.
Zudo #2
Posted 22 November 2012 - 08:09 AM
We need code!
Cranium #3
Posted 22 November 2012 - 08:10 AM
Could you post the rest of the mesage? That is the important part. bios:338 means that there was an error on line 338 of the bios, but the next part says what the error was caused by.
Spongy141 #4
Posted 22 November 2012 - 08:10 AM
We need code!
lol well I will PM it to you, since I do not want to release even what kind of code it is, so that people do not try to copy me last minute.
Spongy141 #5
Posted 22 November 2012 - 08:12 AM
Could you post the rest of the mesage? That is the important part. bios:338 means that there was an error on line 338 of the bios, but the next part says what the error was caused by.
bios:338: [string "account"]:7: syntax error
and I will only PM the code
Cranium #6
Posted 22 November 2012 - 08:15 AM
You don't need to PM it, since stealing code is unlikely. We just need the full error message…

So the error is on line 7 of your program labelled "account".
Spongy141 #7
Posted 22 November 2012 - 08:16 AM
Well sorry I PMed it to you before you said that, but here

bios:338: [string "account"]:7: syntax error

and the code

print("Welcome to spongy141's account program, for the follow ?s please reply with and only a yes or no.")
term.write("Hello welcome! Are you new here?")
if read() == ("yes") then
print("Well then you need to make an account!")
print("First your going to enter your username, then password")
local read(username)
local read(password)
print("Your account information:")
write(username)
print(password)
else
print("Please fill in your account information")
term.write("Account username:?")
if read() == (username) then
term.write("Now your password:")
if read("*") == (password) then
print("Welcome-")
write(username)
else
print("Incorrect")
end
else
print("Incorrect")
end
end

Cranium #8
Posted 22 November 2012 - 08:25 AM
Fixed error:

print("Welcome to spongy141's account program, for the follow ?s please reply with and only a yes or no.") 
term.write("Hello welcome! Are you new here?") 
if read() == ("yes") then 
print("Well then you need to make an account!") 
print("First your going to enter your username, then password") 
local username = read() --you need to define a variable 
local password = read("*") 
print("Your account information:") 
print(username) 
print(password) 
else 
print("Please fill in your account information") 
term.write("Account username:?") 
if read() == username then 
term.write("Now your password:") 
if read("*") == password then 
print("Welcome-") 
write(username) 
else 
print("Incorrect") 
end 
else 
print("Incorrect") 
end 
end
Spongy141 #9
Posted 22 November 2012 - 08:35 AM
Fixed error:

print("Welcome to spongy141's account program, for the follow ?s please reply with and only a yes or no.")
term.write("Hello welcome! Are you new here?")
if read() == ("yes") then
print("Well then you need to make an account!")
print("First your going to enter your username, then password")
local username = read() --you need to define a variable
local password = read("*")
print("Your account information:")
print(username)
print(password)
else
print("Please fill in your account information")
term.write("Account username:?")
if read() == username then
term.write("Now your password:")
if read("*") == password then
print("Welcome-")
write(username)
else
print("Incorrect")
end
else
print("Incorrect")
end
end
thanks
RemoteMine #10
Posted 22 November 2012 - 09:17 PM
It was very simple code. Nobody's going to steal that. ;)/>/>
ChunLing #11
Posted 23 November 2012 - 03:22 AM
Sez U, "Yoink!" sez I.