Fist Posted September 12, 2015 Posted September 12, 2015 (edited) Hello! I wonder how i can make so gridlist sorts those items what was made, by specified column ? Edited September 12, 2015 by Guest
Fist Posted September 12, 2015 Author Posted September 12, 2015 guiGridListAddColumn lol, there is no Arguments u can sort items in it.
-ffn-python Posted September 12, 2015 Posted September 12, 2015 I don't understand what you mean Brain thoroughly confused
Fist Posted September 12, 2015 Author Posted September 12, 2015 I don't understand what you mean Brain thoroughly confused I mean, how i can sort items in specified column by script ? So it shows everyone in gridlist top player which has highest score.
-ffn-python Posted September 12, 2015 Posted September 12, 2015 Example; addEvent addEventHandler setElementData
Fist Posted September 12, 2015 Author Posted September 12, 2015 Example; addEvent addEventHandler setElementData What u are giving me? lol, you cant sort gridlist with those functions.
KariiiM Posted September 12, 2015 Posted September 12, 2015 Hey fist, Im going to give you an example it's part of my code window = guiCreateWindow( 416, 285, 416, 285, "My Window", false) --creating window we defined it with "window". guiSetVisible (window, false) --making it invisible in case the resource started. guiWindowSetSizable(window,false) --making the window not sizable grid = guiCreateGridList(9, 21, 398, 223, false, window) --creating the gridlist and we define it with "grid" name column1 = guiGridListAddColumn(grid,"Name:",0.35) --creating column item name in gridlist named "grid". column2 = guiGridListAddColumn(grid,"Price:",0.7) --creating column item name in gridlist named "grid". Btn1 = guiCreateButton(10, 248, 154, 28, "Accept", false, window) Btn2 = guiCreateButton(249, 248, 154, 28, "Cancel", false, window)
Fist Posted September 12, 2015 Author Posted September 12, 2015 Hey fist, Im going to give you an example it's part of my code window = guiCreateWindow( 416, 285, 416, 285, "My Window", false) --creating window we defined it with "window". guiSetVisible (window, false) --making it invisible in case the resource started. guiWindowSetSizable(window,false) --making the window not sizable grid = guiCreateGridList(9, 21, 398, 223, false, window) --creating the gridlist and we define it with "grid" name column1 = guiGridListAddColumn(grid,"Name:",0.35) --creating column item name in gridlist named "grid". column2 = guiGridListAddColumn(grid,"Price:",0.7) --creating column item name in gridlist named "grid". Btn1 = guiCreateButton(10, 248, 154, 28, "Accept", false, window) Btn2 = guiCreateButton(249, 248, 154, 28, "Cancel", false, window) why u giving me this? I NEED HOW I CAN MAKE SO IT SORTS PLAYERS BY SCORE. Read damn topic.
KariiiM Posted September 12, 2015 Posted September 12, 2015 Read damn topic. Calm down? You didn't explain your problem as well, after all im just trying to help you so act nice
Fist Posted September 12, 2015 Author Posted September 12, 2015 Read damn topic. Calm down? You didn't explain your problem as well, after all im just trying to help you so act nice Sorry, but youre 2nd guy who already doesnt read topic correct.
KariiiM Posted September 12, 2015 Posted September 12, 2015 Sorry, but youre 2nd guy who already doesnt read topic correct. So, you want to get all online players in a gridlist and make them in order based on their score or what?
Fist Posted September 12, 2015 Author Posted September 12, 2015 Sorry, but youre 2nd guy who already doesnt read topic correct. So, you want to get all online players in a gridlist and make them in order based on their score or what? Excalty!
KariiiM Posted September 12, 2015 Posted September 12, 2015 Sorry, but youre 2nd guy who already doesnt read topic correct. So, you want to get all online players in a gridlist and make them in order based on their score or what? Excalty! I have no idea about your score system
Fist Posted September 12, 2015 Author Posted September 12, 2015 Solved. i used functions below. table.insert table.sort
KariiiM Posted September 12, 2015 Posted September 12, 2015 Solved. i used functions below. table.insert table.sort glad to hear that
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