manve1 Posted April 14, 2013 Share Posted April 14, 2013 How could i re-make my script that it gives out a specific number per a certain row? (( Everything is made and works, i just can't figure out how to make a specific number per row )) numberBK = 1 numberGC = 2 local sd1 = setElementData( gridGinklai, 'BK', numberBK ) local sd2 = setElementData( gridGinklai, 'GC', numberGC ) local gd1 = getElementData( gridGinklai, 'BK' ) local gd2 = getElementData( gridGinklai, 'GC' ) for g,i in ipairs( ginklai ) do rowGinklai = guiGridListAddRow( gridGinklai ) guiGridListSetItemText( gridGinklai, rowGinklai, 2, i, false, false ) guiGridListSetItemText( gridGinklai, rowGinklai, 3, gd1, false, true ) guiGridListSetItemText( gridGinklai, rowGinklai, 3, gd2, false, true ) end P.S.I'm using element data as i want to change some numbers in it during the game, and when server restarts i know element data resets to default. Link to comment
Puma Posted April 14, 2013 Share Posted April 14, 2013 What do you mean with a specific number per row? Link to comment
manve1 Posted April 14, 2013 Author Share Posted April 14, 2013 like for the first row, i would want gd1 number in it, for second row i want gd2 number in it ... ect. Link to comment
Sasu Posted April 14, 2013 Share Posted April 14, 2013 Maybe you can use: guiGridListSetItemData guiGridListGetItemData Link to comment
manve1 Posted April 14, 2013 Author Share Posted April 14, 2013 I first have to use guiGridListSetItemText and then guiGridListSetItemData so i got no way of making it? as if i set the text on gridlist first it comes up on all rows with only 1 number, and i want for different row, different number. 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