Jump to content




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


  • You cannot reply to this topic
2 replies to this topic

#1 RaiuPlays

  • Members
  • 22 posts

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.

#2 wieselkatze

  • Members
  • 221 posts
  • LocationGermany

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 by wieselkatze, 21 January 2015 - 03:37 PM.


#3 RaiuPlays

  • Members
  • 22 posts

Posted 23 January 2015 - 12:28 PM

That's a good point. I didn't think about that. Thank you! :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users