i get the error: attempt to concatenate field (a nil value) but in other parts of my addon it works perfectly...
i initialized my global variable:
Code:
ExecuteSoundTable = {playerDied = "laugh", unitDied = "fatality", executeTime = "finish him", havePost = "hallo post" };
there i don't get any error. in other parts i don't get an error, too.
Code:
elseif (event == "COMBAT_LOG_EVENT_UNFILTERED") then
local _, subevent,_,_,_,_,_, destguid = ...;
if (subevent == "UNIT_DIED" and destguid == guid) then
PlaySoundFile("Interface\\AddOns\\ExecuteSounds\\sounds\\"..ExecuteSoundTable.unitDied..".mp3");
end
but only here and i don't know why, because the sound file exists and can be played but not within the global variable -.-
Code:
elseif (event == "UPDATE_PENDING_MAIL" and HasNewMail() ~= nil) then
PlaySoundFile("Interface\\AddOns\\ExecuteSounds\\sounds\\"..ExecuteSoundTable.havePost..".mp3");
end
i hope you can help me with my concatenate field error... i do the same like in other parts but it doesn't want to work :/
if something i wrote is unclear please ask
i will try to make it clearer