Hello, someone can help me? i need a function to separate words,
Example:
And then you get this:
Help please..!!
Example:
Lua:
local text = "Hello OT"
text = separateString(text)
local newMessage = text[1].. ", " .. text[2] .. ", " .. text[3] .. ", " .. text[4] .. ", " .. text[5] .. ", " .. text[6] .. ", " .. text[7] .. ", " .. text[8] .. ", " .. text[9]
doPlayerSendCancel(cid, newMessage)
And then you get this:
Lua:
H, e, l, l, o, , O, T
Help please..!!