Jump to content

Re-seleccionar item.


Araa

Recommended Posts

Posted

Bueno, les quería hacer una pregunta, en esta parte la lista de jugadores se actualiza, todo perfecto... Pero como esto es para un server muy concurrido, con aproximadamente 700 jugadores regularmente, cuando cambian nick, o loguean, se desmarca el jugador seleccionado, me gustaria saber como remarcarlo o que no se desmarque.

function updateList() 
    guiGridListClear(StatsGrid) 
    for id, players in ipairs (getElementsByType("player")) do 
        local row = guiGridListAddRow(StatsGrid) 
        guiGridListSetItemText(StatsGrid,row,1,(getPlayerName(players)),false,false) 
    end 
end 
addEventHandler("onClientPlayerJoin",root,updateList) 
addEventHandler("onClientPlayerQuit",root,updateList) 
addEventHandler("onClientPlayerChangeNick",root,updateList) 
addEventHandler("onClientResourceStart",root,updateList) 

Gracias.

Hi, this is a signature.

Posted

mmm, creo que eso no se podria, pero podrias probar esto :

  
setTimer( 
function() 
    guiGridListClear(StatsGrid) 
    for id, players in ipairs (getElementsByType("player")) do 
        local row = guiGridListAddRow(StatsGrid) 
        guiGridListSetItemText(StatsGrid,row,1,(getPlayerName(players)),false,false) 
    end 
end, 5000, 0) 
  

aunque no creo que lo solucione :/

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...