Jump to content




[Question] Simple Status Screen


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

#1 Marekone

  • Members
  • 5 posts

Posted 17 August 2012 - 09:46 PM

I try to make a status screen for my factory.
The screen show the the status of the machines (True or False)

here is my code
Whats wrong ?


while true do
if rs.testBundledInput("back",colors.orange) == false
then print("Massfabrikator: False")
elseif rs.testBundledInput("back",colors.orange) == true
then print("Massfabrikator: True")
sleep(5)
end




Sorry for my bad English...

#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 17 August 2012 - 10:01 PM

What is it doing that it shouldn't?

#3 Marekone

  • Members
  • 5 posts

Posted 17 August 2012 - 10:06 PM

when I run the code, nothing happens.

#4 Marekone

  • Members
  • 5 posts

Posted 17 August 2012 - 10:19 PM

got it :(/>

double "end"

while true do
if rs.testBundledInput("back",colors.orange) == false
then print("Massfabrikator: False")
elseif rs.testBundledInput("back",colors.orange) == true
then print("Massfabrikator: True")
sleep(5)
end
end


#5 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 17 August 2012 - 10:25 PM

Wow, can't beleive I didn't see that. Did it not give you an error? It should have said error: 'end' expected (to close if at line 2)

#6 Marekone

  • Members
  • 5 posts

Posted 17 August 2012 - 10:58 PM

it say: 26 !? :(/>
i have restart minecraft and saw my mistake... i correct the code and it works :)/>





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users