BorderLine Posted September 25, 2012 Share Posted September 25, 2012 Hi everyone, well im here cus i have a little problem. Im adding images rank as same Level so, i have a problem function ranks() local account = getPlayerAccount(source) local zombiekills = getAccountData(account,"play.kill") if (zombiekills >= 0) and (zombiekills <= 500) then setAccountData ( account, "Rango", "Civil" ) setElementData ( source , " Rank", "Civil.png") elseif (zombiekills >= 300000) then setAccountData ( account, "Rango", "Dios" ) setElementData ( source, "Rank", "Dios.png" ) end end the problem is. If i have more than 300,000 kills then my image rank is showed on scoreboard. But if some player have less than 500 then dont show the image. and debug say can't load image (scoreboard) meta is good. path is good. what should be the problem? Link to comment
TAPL Posted September 25, 2012 Share Posted September 25, 2012 Try function ranks() local account = getPlayerAccount(source) local zombiekills = getAccountData(account,"play.kill") or 0 if (zombiekills <= 500) then setAccountData(account, "Rango", "Civil") setElementData(source , " Rank", "Civil.png") elseif (zombiekills >= 300000) then setAccountData(account, "Rango", "Dios") setElementData(source, "Rank", "Dios.png") end end Link to comment
Jaysds1 Posted September 25, 2012 Share Posted September 25, 2012 actually, his script should work, make sure the images are the same in the script, example: Dios.png Link to comment
BorderLine Posted September 25, 2012 Author Share Posted September 25, 2012 still problem this is the line of the error in debugscript elseif column.name == "Rank" then dxDrawImage( topX+theX, y+s(1), 30, 30, content, 0, 0, 0, cWhite, drawOverGUI ) i dont think this can be the problem. if show one image why not another? can be a problem the resolution of image? Dios.png is 256zx256 and Civil.png is 64x64 Link to comment
Anderl Posted September 25, 2012 Share Posted September 25, 2012 The problem is that scoreboard is in a different resource so it's trying to load the picture as if it would be in scoreboard resource. You must use full path ":resource\image.png". Link to comment
BorderLine Posted September 25, 2012 Author Share Posted September 25, 2012 Its fixed, thanks tapl, jay and anderl Link to comment
BorderLine Posted September 25, 2012 Author Share Posted September 25, 2012 The last question. Anyone know how i can edit the scoreboar to make more high the lines look the ranks is one over the another. I dont know how explain the img Link to comment
Jaysds1 Posted September 25, 2012 Share Posted September 25, 2012 well, it's based on the script so, edit the dxDrawImage, you could adjust the image size in anyway or form... play around with it and see the results Link to comment
BorderLine Posted September 25, 2012 Author Share Posted September 25, 2012 the problem is, only make more big the image, but i want try to make more big the rows to see beter the rank Link to comment
HunT Posted September 25, 2012 Share Posted September 25, 2012 I Forget This Why i Make This One Many Times Ago. Anyway This i Search In Hard Disk And Find This : http://www.mediafire.com/?mkol9qun7ad44c9 dxscoreboard_client.lua + image 30x30 for example u can edit this but the max size is 30x30 (30x30 is better ) 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