From 6230f2cb7a6ca3ce8f32435f0bd1eebc14cfcd92 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Tue, 5 Sep 2017 18:26:06 +0100 Subject: [PATCH] Now returns nil as a table --- locale/ExpGaming-Core/ExpGaming - Command Maker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/ExpGaming-Core/ExpGaming - Command Maker.lua b/locale/ExpGaming-Core/ExpGaming - Command Maker.lua index e76e0e42..d48b5ad3 100644 --- a/locale/ExpGaming-Core/ExpGaming - Command Maker.lua +++ b/locale/ExpGaming-Core/ExpGaming - Command Maker.lua @@ -30,7 +30,7 @@ function command_inputs_to_string(command) end --Can be used to ensure the right number of inputs are given function get_command_args(event,command,allow_invaild) - if not event.parameter then if #command.inputs > 0 then if allow_invaild then return end return 'Invalid' else return end end + if not event.parameter then if #command.inputs > 0 then if allow_invaild then return {nil} end return 'Invalid' else return end end local args = {} for word in event.parameter:gmatch('%S+') do table.insert(args,word) end if allow_invaild then return args end