Jump to content




CC With BigReactors


5 replies to this topic

#1 DusterTheFirst

  • Members
  • 40 posts

Posted 10 May 2015 - 12:36 PM

tbn = peripheral.wrap("back")

while true do
if rs.getInput("left") ~= true then
tbn.setActive(true)
else
tbn.setActive(false)
end
sleep(1)
end

it returns bios:367: [string "run"]:5: 'then' expected

Edited by DusterTheFirst, 10 May 2015 - 01:24 PM.


#2 Square789

  • Members
  • 39 posts
  • LocationUniverse:C:/MilkyWay/Sol/Earth/Europe/Germany

Posted 10 May 2015 - 12:49 PM

I don't have BigReactors, but I this code works pretty fine if i replace tbn with a monitor and setActive with write.
I hope you didn't type [indent] and the bracket in line 7 into the code.

Edited by Square789, 10 May 2015 - 12:50 PM.


#3 DusterTheFirst

  • Members
  • 40 posts

Posted 10 May 2015 - 01:24 PM

::::

Edited by DusterTheFirst, 10 May 2015 - 01:53 PM.


#4 DusterTheFirst

  • Members
  • 40 posts

Posted 10 May 2015 - 01:52 PM

 Square789, on 10 May 2015 - 12:49 PM, said:

I don't have BigReactors, but I this code works pretty fine if i replace tbn with a monitor and setActive with write.
I hope you didn't type [indent] and the bracket in line 7 into the code.

oh i didnt

also it didnt work:(

#5 Square789

  • Members
  • 39 posts
  • LocationUniverse:C:/MilkyWay/Sol/Earth/Europe/Germany

Posted 10 May 2015 - 02:50 PM

It might be that you have a typo in your program.


But maybe there's something wrong with your ComputerCraft.
You coud try reinstalling. Backup your files and download CC again.

The files should be in
C:\Users\YOUWONTGETMYREALNAME\AppData\Roaming\.minecraft\saves\<YourWorldName>\computer, if you are on Windows7.
If you are on an other Windows, enter %APPDATA% to the addres bar of the file browser. You should see the .minecraft folder then, if it's not hidden.
But when you are on an other Operating system, I'm afraid I can't tell you where the files are :(

Edited by Square789, 10 May 2015 - 02:52 PM.


#6 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 10 May 2015 - 03:47 PM

Please make sure that you've either directly copied and pasted this code, or if you've retyped it, please verify that each and every individual character and line break matches the code you're actually running.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users