Jump to content
Sign in to follow this  
Kyren

I got this lua_err

Recommended Posts

can somebody help me fix this?

 

Lua_err

[09-21 19:15:38]DoString cha_timer

[09-21 19:15:38]resource/script\calculate\functions.lua:4934: bad argument #1 to `next' (table expected, got nil)

but in the line of the script check the picture attached.

21931428_905710046247907_2138870774_o.png

Share this post


Link to post
Share on other sites

But the error is in the log. I will try to rephrase it.

because your code is in cha_timer, it may be that cha_timer is running that code before "AmpSys.Player" table has data. 

Run check:

if AmpSys.Player then

{...} -- your loop goes here


kong.png

a2.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...