HunT Posted January 29, 2012 Share Posted January 29, 2012 Hi All. I need help for make the personal color rankingboard from colorPicker. The player Can Select the color for rankingboard . . . But No work This is without r,g,b from db local label = table.popLast( spareElems ) myFonte = guiCreateFont( "img/prof.ttf", 10) guiSetSize(label, width, height, false) guiSetFont(label,myFonte) guiSetText(label, text) guiLabelSetColor(label, 255, 200, 0) -- Now is yellow guiSetPosition(label, x, y+6, false) guiSetVisible(label, true) Uploaded with ImageShack.us This is with r,g,b local r = tonumber(getElementData(player,"Acolor1")) local g = tonumber(getElementData(player,"Acolor2")) local b = tonumber(getElementData(player,"Acolor3")) local label = table.popLast( spareElems ) myFonte = guiCreateFont( "img/prof.ttf", 10) guiSetSize(label, width, height, false) guiSetFont(label,myFonte) guiSetText(label, text) guiLabelSetColor(label, r, g, b) -- Now with r,g,b guiSetPosition(label, x, y+6, false) guiSetVisible(label, true) debugscript 3 report : bad argument on getElementData element 1 (maybe the player but i test with source . . nothing) Where is The Problem? Tnx Link to comment
Castillo Posted January 29, 2012 Share Posted January 29, 2012 local r = tonumber(getElementData(localPlayer,"Acolor1")) local g = tonumber(getElementData(localPlayer,"Acolor2")) local b = tonumber(getElementData(localPlayer,"Acolor3")) local label = table.popLast( spareElems ) myFonte = guiCreateFont( "img/prof.ttf", 10) guiSetSize(label, width, height, false) guiSetFont(label,myFonte) guiSetText(label, text) guiLabelSetColor(label, r, g, b) -- Now with r,g,b guiSetPosition(label, x, y+6, false) guiSetVisible(label, true) Link to comment
HunT Posted January 29, 2012 Author Share Posted January 29, 2012 You Are Epic Castillo Work Fine Tnx 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