Turbe$Z Posted February 5, 2017 Share Posted February 5, 2017 first error by: function createKillMessageGUI() local gap = config.iconHeight - config.textHeight gap = gap/2 for i=1,config.lines do local y = config.startY*screenY + (config.iconHeight*(i-1)) y = y + gap contentMessages[i] = { dxText:create("",0,y) } end endTime = config.fadeTime + config.startFade end -- second error by: function destroyLine ( line ) for k,part in ipairs(contentMessages[line]) do destroyWidget(part) end contentMessages[line] = {} end first error: killmessages\gui.lua:159: attempt to index global 'dxText' (a nil value) second error: killmessages\gui.lua:468: bad argument #1 to 'ipairs' (table expected, got nil) how to fix this? i tried fix, but doesn't working 1 Link to comment
Addlibs Posted February 5, 2017 Share Posted February 5, 2017 (edited) For the first error, is killmessages/utils/textlib.lua in the meta.xml? That file contains the dxText library which it appears you do not have. (if you don't have that file, you can get it from here: https://github.com/multitheftauto/mtasa-resources/blob/master/[gameplay]/killmessages/utils/textlib.lua) The second error is a result of a table not existing (contentMessages[line], where line is the ID of the line to remove, I believe). This could just mean you passed a wrong ID, and the data for that ID does not exist. Edited February 5, 2017 by MrTasty 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