Jump to content

How to Sort Gridlist?


Fist

Recommended Posts

Posted (edited)

Hello!

I wonder how i can make so gridlist sorts those items what was made, by specified column ?

Edited by Guest
Posted
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.

Posted
Example;
  
addEvent 
addEventHandler 
setElementData 

What u are giving me? lol, you cant sort gridlist with those functions. :?:

Posted

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)  

Posted
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.

Posted
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. :/

Posted

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?

Posted

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!

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...