Updated Lua Scripting (markdown)
This commit is contained in:
parent
3c3febcaaf
commit
a671764159
|
@ -381,6 +381,17 @@ function decimalToHex(num)
|
||||||
return result
|
return result
|
||||||
end
|
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
|
# table
|
||||||
|
|
Loading…
Reference in New Issue