Plate Posted January 1, 2013 Posted January 1, 2013 Hola alguien me podria decir como poner los teams en una gridlist porfavor Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Castillo Posted January 1, 2013 Posted January 1, 2013 Tenes que usar un for-loop con getElementsByType. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Plate Posted January 1, 2013 Author Posted January 1, 2013 Gracias solid Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Plate Posted January 1, 2013 Author Posted January 1, 2013 local teams = getElementsByType("team") for id, team in ipairs(getElementsByType("team")) do local row = guiGridListAddRow ( teamsList ) guiGridListSetItemText ( teamsList, row, 1, getTeamName ( team ), false, false ) guiGridListSetItemColor ( teamsList, row, 1, getTeamColor ( team ) ) end no me anda ): Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Castillo Posted January 1, 2013 Posted January 1, 2013 Postea todo el codigo. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Plate Posted January 2, 2013 Author Posted January 2, 2013 teamList = guiCreateGridList(518,47,265,259,false,apanel) column = guiGridListAddColumn(teamList,"Teams",0.2) for id, team in ipairs(getElementsByType("team")) do local row = guiGridListAddRow ( teamsList ) guiGridListSetItemText ( teamsList, row, column, getTeamName ( team ), false, false ) guiGridListSetItemColor ( teamsList, row, column, getTeamColor ( team ) ) end Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Castillo Posted January 2, 2013 Posted January 2, 2013 teamList = guiCreateGridList(518,47,265,259,false,apanel) column = guiGridListAddColumn(teamList,"Teams",0.2) for id, team in ipairs(getElementsByType("team")) do local row = guiGridListAddRow ( teamList ) guiGridListSetItemText ( teamList, row, column, getTeamName ( team ), false, false ) guiGridListSetItemColor ( teamList, row, column, getTeamColor ( team ) ) end Habias puesto: "teamsList" no "teamList" en add row y set item text/color. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Plate Posted January 2, 2013 Author Posted January 2, 2013 (edited) Gracias solid Pero cuando creo un team no aparece en la lista Edited January 2, 2013 by Guest Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Castillo Posted January 2, 2013 Posted January 2, 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