xXMADEXx Posted April 27, 2013 Posted April 27, 2013 hello guys, i got this code: :gsub('#%x%x%x%x%x%x","") but, i don't know what "#%x%x%x%x%x%x" means. Is there somewhere i can find how to write one of those? Thanks ~xXMADEXx The Ultimate Lua Tutorial! | MTA PHP SDK
xXMADEXx Posted April 27, 2013 Author Posted April 27, 2013 Read this page : string.gsub < > Thanks The Ultimate Lua Tutorial! | MTA PHP SDK
xXMADEXx Posted April 28, 2013 Author Posted April 28, 2013 Read this page : string.gsub < > It helped, but is there anywhere else that you know where i could get some information about it? The Ultimate Lua Tutorial! | MTA PHP SDK
DNL291 Posted April 28, 2013 Posted April 28, 2013 http://lua-users.org/wiki/StringLibraryTutorial "#%x%x%x%x%x%x" Represents a hexadecimal color. getPlayerName(thePlayer):gsub("#%x%x%x%x%x%x","") It is equivalent to: string.gsub(getPlayerName(thePlayer), "#%x%x%x%x%x%x", "") Please do not PM me with scripting related question nor support, use the forums instead.
xXMADEXx Posted April 28, 2013 Author Posted April 28, 2013 http://lua-users.org/wiki/StringLibraryTutorial"#%x%x%x%x%x%x" Represents a hexadecimal color. getPlayerName(thePlayer):gsub("#%x%x%x%x%x%x","") It is equivalent to: string.gsub(getPlayerName(thePlayer), "#%x%x%x%x%x%x", "") Thank you guys, for helping The Ultimate Lua Tutorial! | MTA PHP SDK
DNL291 Posted April 28, 2013 Posted April 28, 2013 You're welcome. Please do not PM me with scripting related question nor support, use the forums instead.
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