G-Stefan Posted July 7, 2016 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"}
Captain Cody Posted July 7, 2016 Posted July 7, 2016 https://wiki.multitheftauto.com/wiki/String.split
DNL291 Posted July 7, 2016 Posted July 7, 2016 For the 1st question: text = #001122G-#aaaaffStefan text:gsub("#%x%x%x%x%x%x","") -- > G-Stefan
G-Stefan Posted July 7, 2016 Author 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
G-Stefan Posted July 7, 2016 Author Posted July 7, 2016 https://wiki.multitheftauto.com/wiki/String.split Thanks so mutch
G-Stefan Posted July 7, 2016 Author Posted July 7, 2016 use my useful function removeHex Ieah is useful,thx so mutch
DNL291 Posted July 7, 2016 Posted July 7, 2016 what means #%x%x%x%x%x%x ?Anyway thanks Hexadecimal codes. You're welcome.
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