How do I use SortCustomD1 and D2 Properly
How do I use SortCustomD1 and SortCustom2D properly?
|
Re: How do I use SortCustomD1 and D2 Properly
What do you need to sort ?
|
Re: How do I use SortCustomD1 and D2 Properly
an integer called cash...
i want to sort ranks basically... |
Re: How do I use SortCustomD1 and D2 Properly
bump
|
Re: How do I use SortCustomD1 and D2 Properly
there should be a tutorial about this issue. Hard to understand
|
Re: How do I use SortCustomD1 and D2 Properly
How is the array built?
Custom means it has to be customized depending on how you want to sort it. The text over the function on the inc really explains it all. Here's an example of 1D-array I did recently. It sorts players by score, if score is equal it compares who has the least amount of deaths instead. Code:
-1: elem1 before elem2 1: elem2 before elem1 0: they are equal. |
Re: How do I use SortCustomD1 and D2 Properly
Quote:
Though is there any way to save it ? like rank from an entire server players (not only online one's) I mean I know there is, but is there any way that is easy? |
Re: How do I use SortCustomD1 and D2 Properly
Quote:
But in general arrays are not more complicated than normal strings, they are basically the same. So if you have an array of strings like so: ArrayOfStrings[32][128]. And you want to edit the string of the 12th index, you can use copy(ArrayOfStrings[12], 127, "New string value of 12th index."). |
Re: How do I use SortCustomD1 and D2 Properly
Quote:
i edited my post i would love it if you can help me with it :) |
Re: How do I use SortCustomD1 and D2 Properly
Save it where? File, vault, SQL? Explain further what "rank" means.
Most things are possible, but only if explained so people can understand exactly what you want. |
| All times are GMT -4. The time now is 06:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.