Dretax Posted August 18, 2017 Share Posted August 18, 2017 local match = false for k, v in ipairs(getElementsByType("pickup")) do if (getElementData(v, "ing.id") and tonumber(getElementData(v, "ing.id")) == id) then match = v break end end if match then setElementData(match "ing.own", specid) end Match is an element, has all the properties, and giving it a good value. Somehow setlelementdata fails, why? Link to comment
Administrators Lpsd Posted August 18, 2017 Administrators Share Posted August 18, 2017 (edited) you're missing a comma setElementData(match "ing.own", specid) Edited August 18, 2017 by LopSided_ 1 1 Link to comment
Dretax Posted August 18, 2017 Author Share Posted August 18, 2017 (edited) 25 minutes ago, LopSided_ said: you're missing a comma setElementData(match "ing.own", specid) F*CK ME. I was looking for it constantly and not even my F*CKing pycharm lua addon detected it -.--.-.--.-.-.- Edited August 18, 2017 by Dretax Link to comment
Mr.Loki Posted August 18, 2017 Share Posted August 18, 2017 17 minutes ago, Dretax said: I was looking for it constantly and not even my F*CKing pycharm lua addon detected it -.--.-.--.-.-.- 2 Try using Sublime Text 3 with Lua Linter addon. Works like a charm Link to comment
Dretax Posted August 20, 2017 Author Share Posted August 20, 2017 On 2017. 08. 19. at 00:07, Mr.Loki said: Try using Sublime Text 3 with Lua Linter addon. Works like a charm Nah, I'm totally fine with Pycharm due to code analysis. Link to comment
Discord Moderators Pirulax Posted April 2, 2018 Discord Moderators Share Posted April 2, 2018 It didnt, since its a valid form of calling a function. print "test" 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