Raised This Month: $32 Target: $400
 8% 

Order Array By Name ASC?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
colossus
Member
Join Date: Sep 2013
Old 07-21-2020 , 15:53   Order Array By Name ASC?
Reply With Quote #1

PHP Code:
ArraySort(g_sArrayNames"MySortFunc");

public 
MySortFunc(Array:ArrayXDitem1item2data[], data_size)
{
    new 
array1[32]
    new 
array2[32]
    
ArrayGetString(ArrayXDitem1array1charsmax(array1))
    
ArrayGetString(ArrayXDitem2array2charsmax(array2))
    
    
server_print("%s | vs | %s"array1array2)
    if( 
item1 item2 )
        return -
1;
    
    if( 
item1 item2 )
        return 
1;
        
    return 
0

colossus is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-21-2020 , 16:04   Re: Order Array By Name ASC?
Reply With Quote #2

Code:
SortADTArray(g_sArrayNames, Sort_Ascending, Sort_String)

https://www.amxmodx.org/api/sorting/SortADTArray
__________________

Last edited by OciXCrom; 07-21-2020 at 16:05.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
colossus
Member
Join Date: Sep 2013
Old 07-21-2020 , 16:15   Re: Order Array By Name ASC?
Reply With Quote #3

That is for AMX 1.9 And for AMX 1.8.2?
colossus is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-21-2020 , 16:58   Re: laziness
Reply With Quote #4

Quote:
Originally Posted by colossus View Post
That is for AMX 1.9 And for AMX 1.8.2?
Unless you do it manually. I don't understand, what is it with people not willing to upgrade to 1.9? It offers more and better things just as in this case. We already got at 1.10 and people are lazy enough to upgrade even to 1.9. This really frustrates me.
thEsp is offline
colossus
Member
Join Date: Sep 2013
Old 07-21-2020 , 18:02   Re: Order Array By Name ASC?
Reply With Quote #5

Actually that versión isn't official
1.9 Don't have support for Orpheu.

Last edited by colossus; 07-21-2020 at 18:03.
colossus is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 07-21-2020 , 20:17   Re: Order Array By Name ASC?
Reply With Quote #6

Quote:
Originally Posted by colossus View Post
Actually that versión isn't official
1.9 Don't have support for Orpheu.
I'm actually using Orpheu with 1.9. I can deduce that you have not even tried to prove. The only thing that cannot be used with Orpheu is ReHLDS/ReGameDLL, not really because of compat issues, its because the signature scanning is broken. (e.g. I'm using ReHLDS too with Orpheu but without ReGameDLL, and I CAN hook gamedll functions, but not engine ones)
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-22-2020 , 03:52   Re: laziness
Reply With Quote #7

Quote:
Originally Posted by colossus View Post
Actually that versión isn't official
1.9 Don't have support for Orpheu.
It is official. Already released and being maintained. It also works with Oprheu just fine. The only thing here is your laziness.
thEsp is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-22-2020 , 04:56   Re: laziness
Reply With Quote #8

Quote:
Originally Posted by thEsp View Post
It is official. Already released and being maintained. It also works with Oprheu just fine. The only thing here is your laziness.
Nope. The latest stable version in 1.8.2. People should not be forced to switch to a potentially broken beta version. It's beta for a reason, you know?
1.9 is still in beta, but feature frozen. It's in a state where it should be fully tested and released as the new stable version, but I guess the dev team or whatever is left of it has other priorities.
1.10 is where new features are added.

About the other point, orpheu should work just fine with 1.9. The only potential issue I could see is the module not loading, but if it loads it should work.
__________________

Last edited by HamletEagle; 07-22-2020 at 04:58.
HamletEagle is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-22-2020 , 05:55   Re: laziness
Reply With Quote #9

Quote:
Originally Posted by HamletEagle View Post
Nope. The latest stable version in 1.8.2.
I never said 1.9 is the latest stable release, only that it is developed by AMXX team and therefore qualifies as official. I didn't realize it was frozen though.

Last edited by thEsp; 07-22-2020 at 06:02.
thEsp is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-22-2020 , 07:43   Re: Order Array By Name ASC?
Reply With Quote #10

AMXX is backwards compatible. This means that newer versions will always have or support all the stuff that worked on older versions. It's not true that Orpheu doesn't work on 1.9.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode