Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » Another Slash Command

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off