Attempt to call a number... [Solved]
Posted: Thu Aug 26, 2010 6:10 pm
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:
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?
Code: Select all
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
I uploaded the whole code for your guys to check if you feel like it. Please halp?