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

[Solved][Lua][Error] Error when trying to tempx = math.random(0,x)

Started by rerere284, 16 March 2012 - 04:07 PM
rerere284 #1
Posted 16 March 2012 - 05:07 PM
I was trying to make a script where a character wandered across the screen, but it got a

"wanderer|4| bad argument| number expected, got function"

here is the full code:
http://pastebin.com/fiw0U5mc
Liraal #2
Posted 16 March 2012 - 05:09 PM
x,y=term.getSize()
rerere284 #3
Posted 16 March 2012 - 07:57 PM
Thanks!