Jump to content

[Help] Custom rankingboard


HunT

Recommended Posts

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) 

thisj.png

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

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