Jump to content

strange string problem


IIYAMA

Recommended Posts

  • Moderators

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

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...