~Funky~ Posted September 29, 2013 Posted September 29, 2013 Hola A Todos, Necesito Ayuda Con La GridList, Quiero Que Me Diga La Id y El Nombre Del Skin Pero No Me Sale Me Podrian Ayudar :c Aca El Script : SknGrid = {{"CJ",0},{"Truth",1},{"Maccer",2},{"Andre",3},{"Bbthin",4},} IDGrid = {{"0"},{"1"},{"2"},{"3"},{"4"},} ListaDeSkins = guiCreateGridList(12, 25, 191, 276, false,vn) guiGridListAddColumn(ListaDeSkins, "Nombre", 0.3) guiGridListAddColumn(ListaDeSkins, "ID", 0.5) guiSetAlpha(ListaDeSkins, 0.86) for i, SknS in ipairs (SknGrid) do row = guiGridListAddRow (ListaDeSkins) -- guiGridListSetItemText (ListaDeSkins, row, 1, tostring(SknS[1]), false, false) guiGridListSetItemData (ListaDeSkins, row, 1, tostring(SknS[2])) end for i, SknSS in ipairs (IDGrid) do -- guiGridListSetItemText (ListaDeSkins, row, 2, tostring(SknSS[1]), false, false) end Con Ese Codigo Me Sale Esto Solo Una Id, Pero No Me Sale Las Demas Id D:, aca La Foto :
Castillo Posted September 29, 2013 Posted September 29, 2013 SknGrid = {{"CJ",0},{"Truth",1},{"Maccer",2},{"Andre",3},{"Bbthin",4},} ListaDeSkins = guiCreateGridList(12, 25, 191, 276, false,vn) guiGridListAddColumn(ListaDeSkins, "Nombre", 0.3) guiGridListAddColumn(ListaDeSkins, "ID", 0.5) guiSetAlpha(ListaDeSkins, 0.86) for i, SknS in ipairs (SknGrid) do row = guiGridListAddRow (ListaDeSkins) guiGridListSetItemText (ListaDeSkins, row, 1, tostring(SknS[1]), false, false) guiGridListSetItemText (ListaDeSkins, row, 2, tostring(SknS[2]), false, false) end San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted September 29, 2013 Posted September 29, 2013 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts