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

Error: multiple points

Started by asnarr204, 03 April 2015 - 02:58 PM
asnarr204 #1
Posted 03 April 2015 - 04:58 PM
I am a little new to computercraft so I am still learning some things about lua. Right now I am in the process of making a program where a user can enter enter a command which will then be sent to one of those new command block computers, which will execute the command as if it is in a command block (this is just for fun, I realize how inefficient it is). Everything was working fine until I added the waitForReply() function. Now when I try to execute the program I get the response "multiple points". What does that even mean?

Here is the program: http://pastebin.com/RRhvb6PV

I would like the waitForReply() function to wait 5 times until either the command block computer replies to it the distance away the two computers are, or until 20 seconds have passed. The reason I will have the command block computer send the distance as confirmation is so that if two computers in my world are running the same program and have the command block computer run a command, they will be able to tell if it was their command that it ran.
Edited on 03 April 2015 - 03:01 PM
valithor #2
Posted 03 April 2015 - 05:23 PM
The multiple points error occurs when the lua interpreter thinks you are trying to make a number with multiple decimal points hence the errors name. This error is common when concatinating numbers into a string and can be fixed by putting parenthesis around the number In the string.

Your problem is on line 159 in that print command. You should be able to just put parenthesis around those numbers and it should work.
asnarr204 #3
Posted 03 April 2015 - 05:51 PM
Thanks, that fixed it :lol:/>