Jump to content

small question


WASSIm.

Recommended Posts

hi guys i have problem

i add code color #646464 but show me to screen and dont change color :(

how fiX ?

dxDrawBorderedText(""..tostring(showammo1).." #646464"..tostring(showammo3).."",amx1, amy1, amx2, amy2,tocolor(220,220,220,255),1,"pricedown","right","top",false,false,false) 

sry for bad english

Link to comment
Inside: "dxDrawBorderedText" function do you have colorCoded argument enabled?

idk

function dxDrawBorderedText( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) 
    dxDrawText ( text, x - 2, y - 2, w - 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) -- black 
    dxDrawText ( text, x + 2, y - 2, w + 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) 
    dxDrawText ( text, x - 2, y + 2, w - 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) 
    dxDrawText ( text, x + 2, y + 2, w + 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) 
    dxDrawText ( text, x - 2, y, w - 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) 
    dxDrawText ( text, x + 2, y, w + 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) 
    dxDrawText ( text, x, y - 2, w, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) 
    dxDrawText ( text, x, y + 2, w, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) 
     

Link to comment
Post the edited: "dxDrawBorderedText" function.
function dxDrawBorderedText( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded ) 
    dxDrawText ( text, x - 2, y - 2, w - 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) -- black 
    dxDrawText ( text, x + 2, y - 2, w + 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text, x - 2, y + 2, w - 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text, x + 2, y + 2, w + 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text, x - 2, y, w - 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text, x + 2, y, w + 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text, x, y - 2, w, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text, x, y + 2, w, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded ) 
           end 

and this

dxDrawBorderedText(""..tostring(showammo1).." #646464"..tostring(showammo3).."",amx1, amy1, amx2, amy2,tocolor(220,220,220,255),1,"pricedown","right","top",false,false,false,true) 

Link to comment
function dxDrawBorderedText( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded ) 
    local text_ = text:gsub ( "#%x%x%x%x%x%x", "" ) 
    dxDrawText ( text_, x - 2, y - 2, w - 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) -- black 
    dxDrawText ( text_, x + 2, y - 2, w + 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text_, x - 2, y + 2, w - 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text_, x + 2, y + 2, w + 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text_, x - 2, y, w - 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text_, x + 2, y, w + 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text_, x, y - 2, w, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text_, x, y + 2, w, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) 
    dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded ) 
end 

Try it.

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