So, I was chugging along, coding my project. I have a bad habit of coding huge amounts and then deciding to check to see if it works. So I wrote 2 huge functions and a little one all without checking to see if they work and what do you know, I can't get the biggest one to work for the life of me. It keeps telling me that I'm attempting to call a number on line 43, which means (according to my internet searching) that lua expected a function and got a number instead. So what's the deal? The entire line looks like this:
ua_num = ((l_x2 - l_x1)(a_y1 - l_y1)) - ((l_y2 - l_y1)(a_x1 - l_x1)) -- The numerator and denomenator are calculated seperately
So I don't see any problem, all the variables in question were set before the call, so I'm very confused...
I uploaded the whole code for your guys to check if you feel like it. Please halp?
Last edited by Person on Thu Aug 26, 2010 6:39 pm, edited 1 time in total.
"Here's another curse for you, may all your bacon burn."
Sadly the mathematical idea that the brackets imply multiplication is rarely implemented by programming languages. Interestingly, Lua, unlike most programming languages, is resolved the syntax as a function call as supposed to raising syntax errors.