AL[SH]BH Posted January 12, 2012 Share Posted January 12, 2012 Gyas i have script Country((flags)) is error look image 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
Castillo Posted January 12, 2012 Share Posted January 12, 2012 You must edit the scoreboard to show the country flag image. Link to comment
AL[SH]BH Posted January 12, 2012 Author Share Posted January 12, 2012 How ..? edit the scoreboard Link to comment
Castillo Posted January 12, 2012 Share Posted January 12, 2012 You should learn to use the Search feature: viewtopic.php?f=91&t=38627&p=396878 Link to comment
HunT Posted January 12, 2012 Share Posted January 12, 2012 How ..? edit the scoreboard But u copy only the precedent topic with this argument and wait the reply (please admin add the facepalm in smilies) Link to comment
Blaawee Posted January 12, 2012 Share Posted January 12, 2012 are you testing it with a local server ? if you are it will not work i don't think you will edit the " dxscoreboard_exports " you should edit the " dxscoreboard_client " show full code Link to comment
AL[SH]BH Posted January 12, 2012 Author Share Posted January 12, 2012 he Blaawee put the code addScoreboardColumn('Home',columnPosition ,columnSize) add this on line 705 or end file? Link to comment
Blaawee Posted January 12, 2012 Share Posted January 12, 2012 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
AL[SH]BH Posted January 12, 2012 Author Share Posted January 12, 2012 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
Blaawee Posted January 12, 2012 Share Posted January 12, 2012 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
TAPL Posted January 12, 2012 Share Posted January 12, 2012 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
AL[SH]BH Posted January 12, 2012 Author Share Posted January 12, 2012 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
Blaawee Posted January 12, 2012 Share Posted January 12, 2012 ... you edit your post >< Link to comment
AL[SH]BH Posted January 12, 2012 Author Share Posted January 12, 2012 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
Blaawee Posted January 12, 2012 Share Posted January 12, 2012 put an else after the code2 Link to comment
AL[SH]BH Posted January 12, 2012 Author Share Posted January 12, 2012 I mean elseif I put instead else ? Link to comment
Blaawee Posted January 12, 2012 Share Posted January 12, 2012 elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) else Link to comment
AL[SH]BH Posted January 12, 2012 Author Share Posted January 12, 2012 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 Link to comment
TAPL Posted January 12, 2012 Share Posted January 12, 2012 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
AL[SH]BH Posted January 13, 2012 Author Share Posted January 13, 2012 (edited) Thx Guys the script is run :: ) Edited January 13, 2012 by Guest 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