Jump to content

outputChatBox problem


JuniorMelo

Recommended Posts

Posted

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 ) 

mta-screen_2013-10-06_17-10-28.png

........... \__ ▄▂_

.........[█|||███████]▄▄▄▄▄▄▄▄▄▃▂

..__▂▄▅█████████▅▄▃▂

I███████████████████]

...◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

░░░███████ ]▄▄▄▄▄▄▄▄

▂▄▅████████▅▄▃▂

I███████████████████]

◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

Posted
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 !!! :mrgreen::mrgreen::mrgreen::mrgreen:

........... \__ ▄▂_

.........[█|||███████]▄▄▄▄▄▄▄▄▄▃▂

..__▂▄▅█████████▅▄▃▂

I███████████████████]

...◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

░░░███████ ]▄▄▄▄▄▄▄▄

▂▄▅████████▅▄▃▂

I███████████████████]

◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

Posted

Did you get it working?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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

........... \__ ▄▂_

.........[█|||███████]▄▄▄▄▄▄▄▄▄▃▂

..__▂▄▅█████████▅▄▃▂

I███████████████████]

...◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

░░░███████ ]▄▄▄▄▄▄▄▄

▂▄▅████████▅▄▃▂

I███████████████████]

◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

Posted

So, it works?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
So, it works?

yes :mrgreen::mrgreen:

mta-screen_2013-10-06_17-51-43.png

........... \__ ▄▂_

.........[█|||███████]▄▄▄▄▄▄▄▄▄▃▂

..__▂▄▅█████████▅▄▃▂

I███████████████████]

...◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

░░░███████ ]▄▄▄▄▄▄▄▄

▂▄▅████████▅▄▃▂

I███████████████████]

◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

Posted

Ok, good to hear.

You're welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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