Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doCutStrings(cid, word, cutType) -- word [Ex: "ale, alu, alo"] // cutType [Ex: ","]
- local cutWord = {}
- if word then
- local string = tostring(word)
- local cutWord = string:explode(cutType)
- if #cutWord > 0 then
- for i = 1, #cutWord do
- table.insert(cutWord, cutWord[i])
- end
- return cutWord
- else
- return cutWord and true
- end
- --- WORD NOT DECLARED
- else
- print('Palavra não declarada para recorte [Function doCutStrings].')
- return true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement