Fixed Sytax

This commit is contained in:
Cooldude2606
2017-08-20 20:39:17 +01:00
parent 3a5c73f0a0
commit 324ba6ef7a
7 changed files with 12 additions and 12 deletions

View File

@@ -50,7 +50,7 @@ function define_command(name,help,inputs,restriction,event)
local inputs = inputs or {true}
local restriction = restriction or 0
if not event or type(event) ~= 'function' then error('Command requires a function') end
table.insert(Exp_commands,{name,help,inputs,restriction,event})
table.insert(Exp_commands,{name=name,help=help,inputs=inputs,restriction=restriction,event=event})
end
--The magic for the commands. It is a hard bit of code so GL; but it will call the command event have some sanitisaion of the input
function load_command(command)