Moderators IIYAMA Posted July 28, 2013 Moderators Share Posted July 28, 2013 One of the last things I have to learn is working with strings, I still hate that part because I always make a lot of mistakes with it. local defaultColour = tocolor(255,255,255) outputChatBox(tostring("#" .. defaultColour) .. "hoi",255,255,255,true) I have simply no idea what is wrong. My brain is a little bit roasted, (it feels like that) result : #-1 hoi Link to comment
FatalTerror Posted July 28, 2013 Share Posted July 28, 2013 One of the last things I have to learn is working with strings, I still hate that part because I always make a lot of mistakes with it. local defaultColour = tocolor(255,255,255) outputChatBox(tostring("#" .. defaultColour) .. "hoi",255,255,255,true) I have simply no idea what is wrong. My brain is a little bit roasted, (it feels like that) result : #-1 hoi What are you trying to do? Maybe this could help you? https://wiki.multitheftauto.com/wiki/RGBToHex Link to comment
Moderators IIYAMA Posted July 28, 2013 Author Moderators Share Posted July 28, 2013 ah yes thank you, thank you, thank you I thought tocolor would convert also to hex numbers so I only had to add #. 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