Ordering number - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ordering number (
/showthread.php?tid=602818)
Ordering number -
Ilai14 - 13.03.2016
Who I Ordering number Z-A ??
Sorry on my english
Re: Ordering number -
CodeStyle175 - 13.03.2016
I dont even undrestand what is your problem, pls go to school ors.
Re: Ordering number -
Ilai14 - 13.03.2016
Quote:
Originally Posted by CodeStyle175
I dont even undrestand what is your problem, pls go to school ors.
|
You can to say me how I do it this or not ? I not programmer long time
Re: Ordering number -
CodeStyle175 - 13.03.2016
WTF, pls use ****** translate, becuase idont understand, what is your problem
Re: Ordering number -
Ilai14 - 13.03.2016
Quote:
Originally Posted by CodeStyle175
WTF, pls use ****** translate, becuase idont understand, what is your problem
|
How do I fix a numbers Z-A
http://pastebin.com/xCuJ9jaT
This the array pls fix a numbers Z- A
Re: Ordering number -
BroZeus - 13.03.2016
You mean sort? If yes then do like this:
PHP код:
new Arr[15];
for(new i; i < 15; i++)Arr[i] = random(100);
//Bubble sorting technique:
for(new i; i < 15; i++)
{
// here loop till 1 less than size of array:
for(new j = 0; j < 15-1; j++)
{
if(Arr[j] < Arr[j+1])
{
//swapping
new temp = Arr[j];
Arr[j] = Arr[j+1];
Arr[j+1] = temp;
}
}
}
//now all elements are sorted in descending order