G-Stefan Posted July 7, 2016 Share Posted July 7, 2016 Hi i have two questions 1.How can i transform this string:(colorcode)G-(colorcode)Stefan in this string : G-Stefan Ex:#001122G-#aaaaffStefan transform to G-Stefan 2.How can i transform a string in a table of characters Ex:String "Hello" transform in characters={"H" "e" "l" "l" "o"} Link to comment
Captain Cody Posted July 7, 2016 Share Posted July 7, 2016 https://wiki.multitheftauto.com/wiki/String.split Link to comment
DNL291 Posted July 7, 2016 Share Posted July 7, 2016 For the 1st question: text = #001122G-#aaaaffStefan text:gsub("#%x%x%x%x%x%x","") -- > G-Stefan Link to comment
G-Stefan Posted July 7, 2016 Author Share Posted July 7, 2016 For the 1st question: text = #001122G-#aaaaffStefan text:gsub("#%x%x%x%x%x%x","") -- > G-Stefan what means #%x%x%x%x%x%x ? Anyway thanks Link to comment
G-Stefan Posted July 7, 2016 Author Share Posted July 7, 2016 https://wiki.multitheftauto.com/wiki/String.split Thanks so mutch Link to comment
G-Stefan Posted July 7, 2016 Author Share Posted July 7, 2016 use my useful function removeHex Ieah is useful,thx so mutch Link to comment
DNL291 Posted July 7, 2016 Share Posted July 7, 2016 what means #%x%x%x%x%x%x ?Anyway thanks Hexadecimal codes. You're welcome. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now