Jump to content

remove color-coded grid nick list


raynner

Recommended Posts

Posted

I like to have a grid list with a list of all players in the online server including localPlayer more without color codes the nickname of players

as shown below

sBNTGpV.png

InCCT3w.png

I wait anxiously

Posted
I wish fose seen only the name of the player and not just letters color code

AH,you want when you type the player name in the edit box the HTML Code show in the gridlist if the player using it?

Posted
I wish fose seen only the name of the player and not just letters color code

you can use string.gsub example :#

a = string.gsub("#555555LoOs","#%x%x%x%x%x%x","") 
print(a) 

Posted
function ColocarJugadores1 () 
    guiGridListClear(GridJugadores1)-- Borrar la grid 
    for index,player in ipairs(getElementsByType("player")) do 
        local row = guiGridListAddRow( GridJugadores1 ) 
        guiGridListSetItemText ( GridJugadores1, row, 1, (string.gsub ( getPlayerName(player), '#%x%x%x%x%x%x', '' ) or getPlayerName(player)), false, false) 
        guiGridListSetItemData ( GridJugadores1, row, 1, getPlayerName(player)) 
    end 
end 

misses this function I wanted took some examples of wiki and managed to create thanks for the help

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