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

Error that i have no idea means, please help! :)

Started by ArcticPhenom, 18 November 2014 - 07:19 PM
ArcticPhenom #1
Posted 18 November 2014 - 08:19 PM
Hi! I've been practicing my lua lately, and I finally thought I'd fixed all the errors in my game. This was not the case :P/> I got an error saying "window:247: bad argument: doube expected, got nil"


I'll fix the fact that you can't see the black option when you select a color as well, don't worry :P/>

Pastebin link: http://pastebin.com/jSeFyWns

Thanks for the help in advance ^^
valithor #2
Posted 19 November 2014 - 03:06 AM
-snip

You got this error because you passed a nil to term.setCursorPos on line 23. At the point you ran that function neither of the variables had been set.
Edited on 19 November 2014 - 02:06 AM