From 81676183339a51ea43fecdbf775729ec23231bb8 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Mon, 21 Aug 2017 10:59:23 +0100 Subject: [PATCH] Fixed Error made --- locale/ExpGaming-Core/Core Help File.md | 3 ++- locale/ExpGaming-Core/ExpGaming - Server Interface.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/locale/ExpGaming-Core/Core Help File.md b/locale/ExpGaming-Core/Core Help File.md index c92b1fe0..ac3976ba 100644 --- a/locale/ExpGaming-Core/Core Help File.md +++ b/locale/ExpGaming-Core/Core Help File.md @@ -110,7 +110,8 @@ See code for more details. * value (opt) = new value if making a new temp varible * offset (opt) = if the base time is too short, for very big commands * format_as_temp_var(string) - * returns the same value that sudo would with out running the function + * returns the same value that sudo would when given a custom return name + * note only works when there is a custom return name else temp var is nil * command: /server-interface * Run loadstring on lua code given like /c but does not break achievements * restriction = 'Admin' \ No newline at end of file diff --git a/locale/ExpGaming-Core/ExpGaming - Server Interface.lua b/locale/ExpGaming-Core/ExpGaming - Server Interface.lua index 386abe31..4a3fd38b 100644 --- a/locale/ExpGaming-Core/ExpGaming - Server Interface.lua +++ b/locale/ExpGaming-Core/ExpGaming - Server Interface.lua @@ -44,6 +44,7 @@ function sudo(command,args,custom_return_name) end --turns a string into the temp var format so that it can be used function format_as_temp_var(string) + refresh_temp_var(string) return {sudo='sudo-temp-var',name=tostring(string)} end --update the time on a temp var or add it as a new one