Thread: Strange Errors
View Single Post
04/14/14, 01:52 PM   #2
Iyanga
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 183
Originally Posted by LucretiaValdis View Post
Hello Everyone!
I'm getting these Strange UI-Errors:

5224600099212242119:3 function expected instead of nil
stack traceback:
5224600099212242119:3 in function '(main chunk)'

I just cant figure out what causes it because filenames are completely lacking.
Anyone got an idea what causes these errors?
Sorry if this question has already been asked, didn't find anything.

Greetings
Yes, a function was expected but the lua parser only got a nil.

Basically you tried to call a non-existing function, this happens with typos, for example:

function MySimpleFunc(param)
end

function MyOtherFunc()
MySimpelFunc(param)
end

or forgetting the function keyword for a function declaration or calling a function _before_ it was defined.
  Reply With Quote