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

[LUA] Getting error "io:5: unsupported format" when trying to use io.read("*number")

Started by Heisenbugs, 09 January 2013 - 05:49 PM
Heisenbugs #1
Posted 09 January 2013 - 06:49 PM
As the title says really. For a reason I'm not sure about I'm getting error "io:5: unsupported format" when trying to use io.read("*number") to get the user to input a number rather than a string. Thanks for any help.
theoriginalbit #2
Posted 09 January 2013 - 06:51 PM
If memory servers "*number" isn't implemented in CC Lua… use tonumber( io.read() ) instead :)/>
Heisenbugs #3
Posted 09 January 2013 - 09:00 PM
Awesome, thanks.