Thread: Slash Commands
View Single Post
04-02-16, 07:48 PM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Originally Posted by suipsyco View Post
I've read so many posts and tutorials on this but I can't find the fault in my code... i have

Code:
SlashCmdList["RAIDLOCKREPORT"] = DEFAULT_CHAT_FRAME:AddMessage("Working");
SLASH_RAIDLOCKREPORT1 = "/raidlockreport";
SLASH_RAIDLOCKREPORT2 = "/rlr";
When I run the code I get "Type '/help' for a listing of a few commands."
Code:
SlashCmdList["RAIDLOCKREPORT"] = function() 
    DEFAULT_CHAT_FRAME:AddMessage("Working"); 
end
SLASH_RAIDLOCKREPORT1 = "/raidlockreport";
SLASH_RAIDLOCKREPORT2 = "/rlr";
Drycoded.
Edit: Assuming the addon where you have that code is actually loading without errors.
  Reply With Quote