Jump to content

error [Country flags]


AL[SH]BH

Recommended Posts

Gyas i have script Country((flags))

is error

look image

JOW02050.gif

and code

flag.lua

exports.scoreboard:addScoreboardColumn('Home')  
function showcountry() 
    local flag = exports.admin:getPlayerCountry ( source ) 
        if flag then 
        setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") 
        else 
        flag = "N/A" 
        
        end 
end 
addEventHandler("onPlayerJoin",getRootElement(),showcountry) 
     
       

and meta

        

and i edit to [ dxscoreboard_exports ] and i put

addScoreboardColumn('Home',columnPosition ,columnSize) 

in end file dxscoreboard_exports

and i put in acl.xml

        "resource.flags"> 
  

my language engilsh is bad

pls help me in script.....

Link to comment
he Blaawee

put the code

addScoreboardColumn('Home',columnPosition ,columnSize) 

add this on line 705

or end file?

that's wrong

you have to add this line in the "dxscoreboard_client" :

elseif column.name == "Home" then 
  dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) 

if you show the full code will be better

Link to comment

were do i but this code

                                    elseif column.name == "Home" then 
                                    dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI) 

put in add this on line 705? or end file

Link to comment
were do i but this code
                                    elseif column.name == "Home" then 
                                    dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI) 

put in add this on line 705? or end file

i cant tell you where cuz you have diffrent scoreboard versoin

Link to comment
  • Other Languages Moderators
were do i but this code
                                    elseif column.name == "Home" then 
                                    dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI) 

put in add this on line 705? or end file

put it on the line '705' in file 'dxscoreboard_client.lua'

and to be sure get the last scoreboard resource from here http://mtasa-resources.googlecode.com/f ... s-r825.zip

exports.scoreboard:addScoreboardColumn('Home') 
function showcountry() 
    local flag = exports.admin:getPlayerCountry ( source ) 
        if flag then 
        setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") 
        else 
        setElementData(source,"Home","N/A") 
        end 
end 
addEventHandler("onPlayerJoin",root,showcountry) 

Link to comment

gays i put the code in "dxscoreboard_client"

elseif column.name == "Home" then 
dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) 
  

in line 705

is erro

i edit the code chang to

if column.name == "Home" then 
dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) 
end 

Is by no mistakes

Is it true؟

Link to comment

this Code1 is True??

    if column.name == "Home" then 
    dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) 
    end 

or

this code2

elseif column.name == "Home" then 
dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) 

code1 is true and put in dxscoreboard_client But in My server profile do not know if it was true or not

code2 is error and put in dxscoreboard_client and not run scoreboard

Link to comment
  • Other Languages Moderators
i put

like this

    elseif column.name == "Home" then 
    dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) 
else 

and error

show all code in the file

also did you download the last scoreboard from the link?

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