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

bios:366: [string "mine"]:76: unexpected symbol

Started by RaiuPlays, 21 January 2015 - 09:05 AM
RaiuPlays #1
Posted 21 January 2015 - 10:05 AM
Hello. I'm trying to create a mining program, but I keep getting this error message. Here is my program:

http://pastebin.com/3ZX0DA4X

I don't have any clue what could be going wrong here, considering I'm using correct math operators in the equation. Perhaps it's something else in the if statement or in the function that's affecting it… I don't know. I'm fairly new to programming. If anyone can help, I'd be grateful.
wieselkatze #2
Posted 21 January 2015 - 03:37 PM
return is an occupied keyword for returning values of functions. Using another variable name would certainly do the job :)/>
Edited on 21 January 2015 - 02:37 PM
RaiuPlays #3
Posted 23 January 2015 - 12:28 PM
That's a good point. I didn't think about that. Thank you! :)/>