Jump to content




Help With Calculator?


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

#1 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 17 January 2014 - 01:54 PM

Hi, I was making a calculator, and I came along some errors, all of the "operator functions" are nil, although they have information in them! I tried respelling all of them, but to no avail. Help!
The code can be found here.

Thanks for any help.

#2 OReezy

  • Members
  • 91 posts

Posted 17 January 2014 - 03:05 PM

I think the issue here is you are calling on those functions before they are defined, so it gets a nil. This guy explains it better than I can

Spoiler

Edited by Lyqyd, 17 January 2014 - 03:26 PM.


#3 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 17 January 2014 - 03:27 PM

Yes, you need to declare your local functions before the code that should call them.

#4 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 17 January 2014 - 04:16 PM

View PostLyqyd, on 17 January 2014 - 03:27 PM, said:

Yes, you need to declare your local functions before the code that should call them.

View PostOReezy, on 17 January 2014 - 03:05 PM, said:

I think the issue here is you are calling on those functions before they are defined, so it gets a nil. This guy explains it better than I can

Spoiler
Thank you. Time to do some major organization. :/





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users