*FuN Posted June 3, 2012 Posted June 3, 2012 hi guys i have a script for country and flag but appear like this : http://img252.imageshack.us/img252/6784 ... 222530.png Someone can help ??
Alexs Posted June 3, 2012 Posted June 3, 2012 You edit thw scoreboard to use images? Developer @ MYVAL
Alexs Posted June 3, 2012 Posted June 3, 2012 Scoreboard can't use flags because don't accept images Developer @ MYVAL
Castillo Posted June 4, 2012 Posted June 4, 2012 You have to edit the scoreboard resource itself, you could do some research here in the forums, there are many topics related to this. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
*FuN Posted June 4, 2012 Author Posted June 4, 2012 You have to edit the scoreboard resource itself, you could do some research here in the forums, there are many topics related to this. i cant found
Alpha Posted June 5, 2012 Posted June 5, 2012 viewtopic.php?f=91&t=41069&p=416616&hilit=scoreboard+flag#p416549 viewtopic.php?f=91&t=38627&p=396872&hilit=scoreboard+flag#p396832 Don't be lazy. My Resources: [REL] Support System v1.0.2
*FuN Posted June 5, 2012 Author Posted June 5, 2012 end local partOfName = string.sub( playerName, firstCodePos, secondCodePos ) local textLength = dxGetTextWidth( partOfName, fontscale(contentFont, s(1)), contentFont ) dxDrawText( partOfName, xPos+s(1), y+s(1), topX+x+s(1+column.width), y+s(11)+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( 0, 0, 0, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) dxDrawText( partOfName, xPos, y, topX+x+s(column.width), y+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( r or 255, g or 255, b or 255, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) xPos = xPos + textLength end else dxDrawText( content, topX+theX+s(1), y+s(1), topX+x+s(1+column.width), y+s(11)+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( 0, 0, 0, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) dxDrawText( content, topX+theX, y, topX+x+s(column.width), y+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( r or 255, g or 255, b or 255, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) end end x = x + s(column.width + 10) elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) else end local font = iif( element and isElement( element ) and getElementType( element ) == "team", teamHeaderFont, contentFont ) y = y + dxGetFontHeight( fontscale(font, scoreboardScale), font ) index = index + 1 end index = 1 end end end what is wrong ?»?
BinSlayer1 Posted June 5, 2012 Posted June 5, 2012 what is wrong ?»? Everything. The script begins with an "end" ?! There is no if-structure whatsoever.. There are just a few ends and elseifs that should return syntax failures anyway
myonlake Posted June 6, 2012 Posted June 6, 2012 First I'd like to tell you to learn lua first. viewtopic.php?f=148&t=40809 https://wiki.multitheftauto.com/ If I helped you, please click the like button on the right Thanks!
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