Sorting System
Hey, i wanted to make a little sorting system by rairity and the weaponid on a weapon menu but i realised that i don t know how i should do it...
Anyone knows to show and example of a sort system other than the amxx's one? Rarities are from 0 to 5 and weapon ids are stored into an array with size of 24. |
Re: Sorting System
This is the work i ve done so far
PHP Code:
|
Re: Sorting System
Please, no. Simply use ArraySort() or ArraySortEx() if running AMXX dev-builds.
If you need help, show how the arrays are defined because that code is a complete mess and make no sense. |
Re: Sorting System
After a few tries i ve got to nothing and 2nd array can be this: new x[] or new x: x = ArrayCreate(num, num2).
I need to sort some items based on their rarity(5) and return it. |
Re: Sorting System
Show the full array definitions.
|
| All times are GMT -4. The time now is 14:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.