Have they changed how SendChatMessage works?
Currently on live
Code:
SendChatMessage(msg[random(trash)], "SAY", NIL) Code:
Message: Interface\AddOns\AfterKill\AfterKill.lua:29: attempt to index global 'msg' (a nil value) That particular line of code is the only one that's throwing errors. I've tested with that line removed, and everything else works perfectly. I've tried looking and seeing what changed, but finding nothing. Undocumented change, or just me being noobier than usual? |
One thing to do is find out where your msg table is set as it thinks it is null at present
It doesn't look like SendChatMessage function itself has changed. SendChatMessage(msg, "WHISPER", editBox.languageID, lastTell); Is an example of what is in the latest beta version of ChatFrame.lua |
Thanks. I fixed it by changing up my table a bit, and the message.
Going from Code:
local trash = { Code:
local trash = { |
The table is identical to what you had before, however you're now actually referring to that table and not some other, non existant one. You were also trying to pass the table as an argument to random, rather than its length.
This should work: Code:
local trash = { |
For future reference, if the function were changed, the error message would say that you were using it incorrectly. (for example "TipTop-2.9.4\\tiptop-2.9.4.lua:409: Usage: GetSpecializationInfo(specIndex[, isInspect[, isPet]]])")
Your error was just saying that the argument you passed to the function was nil and it couldn't do anything with it. This could be from typos, clearing the variable, scope issues, etc. |
All times are GMT -6. The time now is 03:57 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI