View Single Post
05-25-10, 07:29 AM   #2
Sinaris
A Wyrmkin Dreamwalker
 
Sinaris's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 55
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 ?
  Reply With Quote