SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Closed Thread
Thread Tools Display Modes
Old 13/12/2018, 11:27 AM   #1
Little Clucker
Join Date: Nov 2018
Posts: 9
Reputation: 0
Default How to write sorting functions

How to write sorting functions, such as sorting from small to large

5 7 1 3 3 4 9 9 4

1 3 3 4 4 5 7 9 9
lipan0527 is offline  
Old 13/12/2018, 12:09 PM   #2
Logic_'s Avatar
Join Date: Jun 2015
Location: Pakistan
Posts: 1,545
Reputation: 283
Default Re: How to write sorting functions

There's QuickSort function somewhere on the forum which you can look up at.
Cheap game-host (SA-MP, SA-MP Hosted tab, G-MOD etc) @
Developer @ Nevada State Prison RP/ CookieDM/ COD:IW; Former developer of NSP:RP, COD:BO3, COD:AW, I:RP, PC:RP, NEG, ZL TDM.
  • You can't forcefully correct someone and you shouldn't waste your time on it because you can bring a horse to water but can't force it to drink.
  • Please don't message me asking for help, because by doing that, you're only limiting your support to one person when the whole community can help you here. Refer to scripting help section instead.
Logic_ is offline  
Old 13/12/2018, 01:11 PM   #3
Big Clucker
Rehasher's Avatar
Join Date: Jan 2012
Posts: 64
Reputation: 176
Default Re: How to write sorting functions

And there’s a section for general scripting queries here

Rehasher is offline  
Closed Thread

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) Lorenc_ Includes 14 21/04/2018 05:06 AM
Sorting bug Kraeror Scripting Help 10 17/11/2017 03:52 PM
[Tutorial] Using y_xml to write/read xml files. [Another way to write CFG data but better] Ahmad45123 Tutorials 8 13/03/2015 03:41 AM
Sorting Matz Scripting Help 0 26/12/2012 01:11 PM
[Tool/Web/Other] Cross Functions V1.0 - Create Custom Call Backs / Functions by Just 1 Click CROSS_Hunter Tools and Files 7 05/11/2012 03:17 PM

All times are GMT. The time now is 08:31 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.