This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Whats bios 338?
Started by Spongy141, 22 November 2012 - 07:07 AMPosted 22 November 2012 - 08:07 AM
I keep getting this message.
Posted 22 November 2012 - 08:09 AM
We need code!
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.
Posted 22 November 2012 - 08:10 AM
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.We need code!
Posted 22 November 2012 - 08:12 AM
bios:338: [string "account"]:7: syntax errorCould 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.
and I will only PM the code
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".
So the error is on line 7 of your program labelled "account".
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
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
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
Posted 22 November 2012 - 08:35 AM
thanksFixed 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
Posted 22 November 2012 - 09:17 PM
It was very simple code. Nobody's going to steal that. ;)/>/>
Posted 23 November 2012 - 03:22 AM
Sez U, "Yoink!" sez I.