From 3c94a6c1ba6e4af191b9530ac04efe2b0057d6d1 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Tue, 5 Sep 2017 19:50:18 +0100 Subject: [PATCH] Realy is fixed this time --- locale/ExpGaming-Core/ExpGaming - Command Maker.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/locale/ExpGaming-Core/ExpGaming - Command Maker.lua b/locale/ExpGaming-Core/ExpGaming - Command Maker.lua index d48b5ad3..750871a0 100644 --- a/locale/ExpGaming-Core/ExpGaming - Command Maker.lua +++ b/locale/ExpGaming-Core/ExpGaming - Command Maker.lua @@ -30,8 +30,14 @@ 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 {nil} end return 'Invalid' else return end end local args = {} + if not event.parameter then + if #command.inputs > 0 then + if allow_invaild then return args end + return 'Invalid' + end + return args + end for word in event.parameter:gmatch('%S+') do table.insert(args,word) end if allow_invaild then return args end if command.inputs[#command.inputs] == true then