-
What do you want to achieve? A short and simple way of converting multiple arguments into a single string for an admin system.
-
What is the issue? It’s too large and is pretty hard to work with.
-
What solutions have you tried so far? I’ve looked but I’ve not seen anything that helps
This is the code to convert the arguments currently:
local reasonFunction = function()
local reasonString = ""
for i=1, (#args - 1) do
reasonString = reasonString.." "..tostring(args[i+1])
end
return reasonString
end
local reasonCoroutine = coroutine.wrap(reasonFunction)
local reasonString = reasonCoroutine()
There is also obviously a memory issue with this (local reasonString = ""
) so I have to use a coroutine.