Jump to content




what does it mean?


  • You cannot reply to this topic
1 reply to this topic

#1 Dustmuz

  • Members
  • 174 posts
  • LocationDenmark

Posted 13 November 2014 - 11:08 AM

hello again.. im getting a error i have never encoutered before..

window:248: bad argument: double expected, got nil

the code im using is this

Spoiler


#2 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 13 November 2014 - 12:20 PM

window:something.. error means that you have given wrong arguments to one of the term APIs functions. Your problem was pretty easy to find: you've put dots instead of commas in some term.setCursorPos functions.

...
term.setCursorPos(1.3)
term.write("1: op")
term.setCursorPos(1.4)
term.write("2: ned")
term.setCursorPos(1.5)
...
mon.setCursorPos(1.2)
mon.write("Fuel Temp: "..fueltemp)
mon.setCursorPos(1,3)
mon.write(" Casing Temp: "..casetemp)
mon.setCursorPos(1,4)
mon.write("Fuel Amount: "..fuelam)
mon.setCursorPos(1.5)
...






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users