Jump to content

Gridlist color codes


freudo

Recommended Posts

Posted

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

WOC-DD Destruction Derby

-Level system

-Clan system

-Topwins

-Event system for EXP

-Podium with animation

And more

350x20_FFFFF_FFFFF_00000_00000.png

Posted

I try this man.

I click playername but not showing player stats.

vonkVr.png

But this code working

getPlayerName(player)

WOC-DD Destruction Derby

-Level system

-Clan system

-Topwins

-Event system for EXP

-Podium with animation

And more

350x20_FFFFF_FFFFF_00000_00000.png

Posted
  
getPlayerName(string.gsub(player, "#%x%x%x%x%x%x", "")) 
  
  

I try but lost player names

WOC-DD Destruction Derby

-Level system

-Clan system

-Topwins

-Event system for EXP

-Podium with animation

And more

350x20_FFFFF_FFFFF_00000_00000.png

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

WOC-DD Destruction Derby

-Level system

-Clan system

-Topwins

-Event system for EXP

-Podium with animation

And more

350x20_FFFFF_FFFFF_00000_00000.png

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