Fist Posted September 12, 2015 Share 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 Link to comment
-ffn-python Posted September 12, 2015 Share Posted September 12, 2015 guiGridListAddColumn Link to comment
Fist Posted September 12, 2015 Author Share Posted September 12, 2015 guiGridListAddColumn lol, there is no Arguments u can sort items in it. Link to comment
-ffn-python Posted September 12, 2015 Share Posted September 12, 2015 I don't understand what you mean Brain thoroughly confused Link to comment
Fist Posted September 12, 2015 Author Share 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. Link to comment
-ffn-python Posted September 12, 2015 Share Posted September 12, 2015 Example; addEvent addEventHandler setElementData Link to comment
Fist Posted September 12, 2015 Author Share Posted September 12, 2015 Example; addEvent addEventHandler setElementData What u are giving me? lol, you cant sort gridlist with those functions. Link to comment
KariiiM Posted September 12, 2015 Share 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) Link to comment
Fist Posted September 12, 2015 Author Share 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. Link to comment
KariiiM Posted September 12, 2015 Share 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 Link to comment
Fist Posted September 12, 2015 Author Share 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. Link to comment
KariiiM Posted September 12, 2015 Share 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? Link to comment
Fist Posted September 12, 2015 Author Share 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! Link to comment
KariiiM Posted September 12, 2015 Share 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 Link to comment
Fist Posted September 12, 2015 Author Share Posted September 12, 2015 Solved. i used functions below. table.insert table.sort Link to comment
KariiiM Posted September 12, 2015 Share Posted September 12, 2015 Solved. i used functions below. table.insert table.sort glad to hear that 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