Jump to content

I need some help


Recommended Posts

Posted

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"}

Multi Theft Auto : Racers Land

10%

Posted

For the 1st question:

text = #001122G-#aaaaffStefan 
text:gsub("#%x%x%x%x%x%x","") 
-- > G-Stefan 
  

Please do not PM me with scripting related question nor support, use the forums instead.

Posted
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

Multi Theft Auto : Racers Land

10%

Posted
what means #%x%x%x%x%x%x ?

Anyway thanks

Hexadecimal codes.

You're welcome.

Please do not PM me with scripting related question nor support, use the forums instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...