Kyren 8 Report post Posted September 22, 2017 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. Quote Share this post Link to post Share on other sites
MonkeyCode 453 Report post Posted September 22, 2017 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 Quote Share this post Link to post Share on other sites