raynner Posted October 7, 2015 Share Posted October 7, 2015 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 I wait anxiously Link to comment
KariiiM Posted October 7, 2015 Share Posted October 7, 2015 You want to change a label text color or gridlist rows color? Link to comment
raynner Posted October 7, 2015 Author Share Posted October 7, 2015 I wish fose seen only the name of the player and not just letters color code Link to comment
KariiiM Posted October 7, 2015 Share Posted October 7, 2015 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? Link to comment
LoOs Posted October 7, 2015 Share Posted October 7, 2015 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) Link to comment
raynner Posted October 7, 2015 Author Share Posted October 7, 2015 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 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