JuniorMelo Posted October 6, 2013 Share Posted October 6, 2013 Hello I have a bug in a script, I can not put color team name local pTeam = getPlayerTeam( hitElement ) local iR, iG, iB = getTeamColor( pTeam ) outputChatBox ( '#ff4444[GANG] #ffffff' .. getTeamName( getTeamColor( pTeam ) ) .. ' #ff4444Esta atacando o territorio#ffffff ' .. Territorio .. ' #ff4444Da gang #ffffff' .. equipe , getRootElement(), 255, 255, 255,true ) line 55 outputChatBox ( '#ff4444[GANG] #ffffff' .. getTeamName( getTeamColor( pTeam ) ) .. ' #ff4444Esta atacando o territorio#ffffff ' .. Territorio .. ' #ff4444Da gang #ffffff' .. equipe , getRootElement(), 255, 255, 255,true ) Link to comment
Castillo Posted October 6, 2013 Share Posted October 6, 2013 That doesn't make any sense. You can use this function to conver the R, G, B color to HEX: https://wiki.multitheftauto.com/wiki/RGBToHex NOTE: REMEMBER TO COPY THE FUNCTION SOURCE CODE, IS NOT A NATIVE MTA FUNCTION. Link to comment
JuniorMelo Posted October 6, 2013 Author Share Posted October 6, 2013 That doesn't make any sense.You can use this function to conver the R, G, B color to HEX: https://wiki.multitheftauto.com/wiki/RGBToHex NOTE: REMEMBER TO COPY THE FUNCTION SOURCE CODE, IS NOT A NATIVE MTA FUNCTION. Thanks castillo, helped a lot !!! Link to comment
JuniorMelo Posted October 6, 2013 Author Share Posted October 6, 2013 Did you get it working? outputChatBox ( '#ff4444[GANG] #ffffff' .. RGBToHex(iR, iG, iB) .. '' .. getTeamName(pTeam) .. ' #ff4444Esta atacando o territorio#ffffff ' .. territorio .. ' #ff4444Da gang #ffffff' .. RGBToHex(rR,gG,bB) .. '' .. equipe , getRootElement(), 255, 255, 255,true ) Link to comment
JuniorMelo Posted October 6, 2013 Author Share Posted October 6, 2013 So, it works? yes Link to comment
Castillo Posted October 6, 2013 Share Posted October 6, 2013 Ok, good to hear. You're welcome. 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