Drakath Posted February 22, 2015 Share Posted February 22, 2015 I often get this client error: ERROR: bad argument #1 to 'pairs' (table expected, got nil) Why doesn't it show the resource name? Is there a way to find what resource causes it? Link to comment
John Smith Posted February 22, 2015 Share Posted February 22, 2015 not sure but try to get origin(source) from onDebugMessage Link to comment
Drakath Posted February 22, 2015 Author Share Posted February 22, 2015 I think onDebugMessage only returns server debug messages. The one I posted is client. Link to comment
Drakath Posted February 24, 2015 Author Share Posted February 24, 2015 Maybe it's some sort of error in MTA? I mean it should always show a resource name in the debug. Link to comment
Addlibs Posted February 24, 2015 Share Posted February 24, 2015 Missing script file location in debug script only occurs on Lua errors (not MTA function argument errors) in compiled Lua files (haven't personally tested this though, heard that somewhere else a while ago) Link to comment
Drakath Posted February 25, 2015 Author Share Posted February 25, 2015 But the debug still shows a resource name of other compiled script errors. What's wrong with this one? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now