Jump to content

Scoreboard & Flags


'LinKin

Recommended Posts

Hello,

I will go straight to the point.

I want a column in scoreboard that shows me the country flag, and next to it, the Country's tag (i.e [flag:co] CO)

I have edited the dxScoreboard_Client. Added these lines

elseif column.name == "Home" then 
        dxDrawImage( topX+theX, y+s(1), 16, 11, content [ 1 ], 0, 0, 0, cWhite, drawOverGUI ) 
        dxDrawText ( tostring(content[2]), topX+theX, y+s(1), 16, 11, cWhite, 1, "default", "right", "bottom", true, false, drawOverGUI ) 
outputChatBox(tostring(content[2])) 

The flag's image is properly displayed, but the country's tag (string) is not...

I put that outputChatBox in order to make sure the tag's string existed, and yes it does.

I have no errors nor warnings while running the script.

I really don't know what is going on with dxDrawText.. I've deleted the dxDrawImage line, so the dxScoreboard_Client looks like this:

elseif column.name == "Home" then 
        dxDrawText ( tostring(content[2]), topX+theX, y+s(1), 16, 11, cWhite, 1, "default", "right", "bottom", true, false, drawOverGUI ) 
outputChatBox(tostring(content[2])) 

And in the 'Home' Column anything is shown.. just blank.

Any suggestions?

* I took as guide the following topic: viewtopic.php?f=91&t=52867

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