Jump to content

Gridlist color codes


freudo

Recommended Posts

Hi guys,

I have one problem.

Player list color codes problem.

code:

function skyturkGrid() 
    guiGridListClear(statsGrid) 
    if (guiGridListClear) then 
    for id, player in ipairs ( getElementsByType ( "player" ) ) do 
            local row = guiGridListAddRow(statsGrid) 
            guiGridListSetItemText(statsGrid, row, 1, getPlayerName(player), false, false) 
        end 
    end 
end 

ynL7nj.png

Link to comment
if ( source == statsGrid ) then 
        row, col = guiGridListGetSelectedItem ( source ) 
        if ( row and col and row ~= -1 and col ~= -1 ) then 
            local playername = guiGridListGetItemText ( source, row, col ) 
            local thePlayer = getPlayerFromName ( playername ) 
            if ( thePlayer ) then 
                local x, y, z = getElementPosition ( thePlayer ) 

this?

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