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

windows:57: expected number?!?

Started by thewmatt, 16 October 2015 - 01:50 PM
thewmatt #1
Posted 16 October 2015 - 03:50 PM
I've been working on a program and when i test it i get this error. I don't know where it is coming from, or how to fix it. what do i do?
Edited on 16 October 2015 - 01:56 PM
KingofGamesYami #2
Posted 16 October 2015 - 04:10 PM
Any error with "window:" in front of it means you passed an invalid value to the term API (eg term.write, term.setCursorPos, etc.) Most likely, you passed a non-number value to term.setTextColor / term.setBackgroundColor / term.setCursorPos.
Lyqyd #3
Posted 16 October 2015 - 07:38 PM
If the above advice does not help you track down the issue, please post your code.