Dretax Posted August 18, 2017 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?
MTA Team Lpsd Posted August 18, 2017 MTA Team Posted August 18, 2017 (edited) you're missing a comma setElementData(match "ing.own", specid) Edited August 18, 2017 by LopSided_ 1 1
Dretax Posted August 18, 2017 Author 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
Mr.Loki Posted August 18, 2017 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
Dretax Posted August 20, 2017 Author 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.
Discord Moderators Pirulax Posted April 2, 2018 Discord Moderators Posted April 2, 2018 It didnt, since its a valid form of calling a function. print "test"
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