Cassè Posted April 29, 2020 Posted April 29, 2020 I want to get an item from gridlist with item text. Can someone help me?
-Ilker. Posted April 29, 2020 Posted April 29, 2020 guiGridListGetSelectedItem guiGridListGetItemText
Cassè Posted April 29, 2020 Author Posted April 29, 2020 I won't select the item. I will remove item from gridlist without select.
Cassè Posted April 29, 2020 Author Posted April 29, 2020 I'm gonna explain different way. Think a grid list with filled by players. When a player dies, that player will be removed from gridlist automatically.
-Ilker. Posted April 29, 2020 Posted April 29, 2020 'onPlayerWasted' triggerClientEvent guiGridListClear getElementsByType -- loop 'player' guiGridListAddRow getPlayerName guiGridListSetItemText
Cassè Posted April 29, 2020 Author Posted April 29, 2020 3 hours ago, -Ilker. said: 'onPlayerWasted' triggerClientEvent guiGridListClear getElementsByType -- loop 'player' guiGridListAddRow getPlayerName guiGridListSetItemText Türk müsün merak ettim. İşe yaradı bu arada, yardımın için teşekkürler. if you didn't understand text above, just forget it. Thanks for your help. It worked. 1
-Ilker. Posted April 29, 2020 Posted April 29, 2020 Np . nah i Dizilerinizi seviyorum, özellikle Ilker
Infinity-War Posted April 29, 2020 Posted April 29, 2020 @Cassè , you can use this code without trigger =] addEventHandler ( 'onClientPlayerWasted' , root , function ( ) local Id = 0 while ( Id <= guiGridListGetRowCount( GridList ) ) do if ( guiGridListGetItemText ( GridList , Id , 1 ) == getPlayerName ( source ) ) then guiGridListRemoveRow ( GridList , Id ) end Id = Id + 1 end end ) 1
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