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

bios 339 error at end of the program

Started by ianiD, 01 January 2014 - 05:43 AM
ianiD #1
Posted 01 January 2014 - 06:43 AM
Hey, I'm making a install program for a improvisation of internet:


function installConfig(o)
  print("Installing using config: "..o)   --this is still WIP
end
print("Choose config:")
print("1. Client")
print("2. Server")
print("3. DNS server")
o = read()
if o=='1' or o=='2' or o=='3' then
  installConfig(o)
else
  print("There is no such configuration: "..o.."!)
  print("Please reboot and enter a correct config!")
  reboot
end
but I have this error:


bios:339: [string "install"]:14: '=' expected

Thanks for the support!
Edited on 02 January 2014 - 11:04 AM
ianiD #2
Posted 02 January 2014 - 12:05 PM
Oops, managed to fix this. Stupid error: I had to put os.reboot() instead of reboot.