Okay. I was working on it, but i does not work
Here is my current code snipped:
Code:
function saveLogfile()
print("Logfile saved");
end
function deleteLogfile()
print("Logfile deleted");
end
SLASH_RAIDLOG1, SLASH_RAIDLOG2 = '/rlog', '/raidlog';
local function handler(msg, editbox)
if msg == 'delete' then
deleteLogfile();
else
saveLogfile();
end
end
SlashCmdList["RAIDLOG"] = handler;
How can i add my code that i posted abouve, that this addon save and delete some variables ?