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

TPS - "multiple points" error, and I can't find where it is

Started by LDDestroier, 13 December 2016 - 08:39 PM
LDDestroier #1
Posted 13 December 2016 - 09:39 PM
I was modifying my program to work with chests, and for some reason, it gives me the error 'multiple points'. It doesn't specify a line number, and I can't figure out where it is by looking at the code. What line is causing it!?

http://pastebin.com/PsTiQ5eu
Anavrins #2
Posted 13 December 2016 - 09:54 PM
Line 395, you have ..a/10..
You'll have to put that in parentheses.
apemanzilla #3
Posted 13 December 2016 - 11:24 PM
Line 395, you have ..a/10..
You'll have to put that in parentheses.

Or simply add a space after the between the 10 and the ..

The reason this happens is because Lua thinks that the .. is supposed to be part of the number literal 10, and you can't have multiple decimal points in a single number.