From a671764159dd96e3a12b2b3d40ec0591f644e60b Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Tue, 22 Feb 2022 20:41:19 -0500 Subject: [PATCH] Updated Lua Scripting (markdown) --- Lua-Scripting.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Lua-Scripting.md b/Lua-Scripting.md index e0b22b2e..4c9028d8 100644 --- a/Lua-Scripting.md +++ b/Lua-Scripting.md @@ -381,6 +381,17 @@ function decimalToHex(num) return result end + + +function print_array(arr) + local str = "" + local index = 1 + while arr[index] ~= nil do + str = str.." "..decimalToHex(arr[index]) + index = index + 1 + end + return str +end ``` # table