Uknown Command
#1
It should create it on the initialize function,but all of my commands are unknown.

Quote:function Initialize(Plugin)
Plugin:SetName("AutomatedMessages")
Plugin:SetVersion(1)

local PluginManager = cPluginManager:Get()
PluginManager:BindCommand("/automessage add","automessage.add",AddMessage,"")
PluginManager:BindCommand("/automessage remove","automessage.remove",RemoveMessage,"")
PluginManager:BindCommand("/automessage edit","automessage.edit",EditMessage,"")
PluginManager:BindCommand("/automessage reload","automessage.reload",Reload,"")
PluginManager:BindCommand("/automessage interval","automessage.interval",EditInterval,"")
local MsgDB = sqlite3.open("AutomatedMessages.sqlite")
MsgDB:exec([=[
CREATE TABLE IF NOT EXISTS Messages
(
MessageName TEXT Primary Key NOT NULL,
Message TEXT NOT NULL,
Interval INT NOT NULL
);
]=])
Reload()
LOG("Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
return true
end

All of my command functions return true.
Reply
Thanks given by:


Messages In This Thread
Uknown Command - by Shadowraix - 05-10-2015, 12:10 PM
RE: Uknown Command - by xoft - 05-10-2015, 03:51 PM
RE: Uknown Command - by Shadowraix - 05-10-2015, 04:15 PM
RE: Uknown Command - by xoft - 05-10-2015, 04:22 PM
RE: Uknown Command - by Shadowraix - 05-11-2015, 04:56 AM
RE: Uknown Command - by worktycho - 05-11-2015, 05:32 AM
RE: Uknown Command - by xoft - 05-11-2015, 07:28 AM
RE: Uknown Command - by Shadowraix - 05-11-2015, 09:42 AM
RE: Uknown Command - by xoft - 05-11-2015, 04:45 PM
RE: Uknown Command - by Shadowraix - 05-12-2015, 06:49 AM
RE: Uknown Command - by xoft - 05-12-2015, 07:02 AM
RE: Uknown Command - by Shadowraix - 05-12-2015, 07:07 AM
RE: Uknown Command - by xoft - 05-12-2015, 07:22 AM
RE: Uknown Command - by Shadowraix - 05-12-2015, 07:27 AM
RE: Uknown Command - by xoft - 05-12-2015, 07:24 AM



Users browsing this thread: 1 Guest(s)