Code: Select all
index1 = pmm_get_global_named_num("1");
index2 = pmm_get_global_named_num("2");
index3 = pmm_get_global_named_num("3");
index4 = pmm_get_global_named_num("4");
index5 = pmm_get_global_named_num("5");
index6 = pmm_get_global_named_num("6");
index7 = pmm_get_global_named_num("7");
index8 = pmm_get_global_named_num("8");
index9 = pmm_get_global_named_num("9");
index10 = pmm_get_global_named_num("10");
array: Indexes[1,10](0);
Indexes[1,1] = index1;
Indexes[1,2] = index2;
Indexes[1,3] = index3;
Indexes[1,4] = index4;
Indexes[1,5] = index5;
Indexes[1,6] = index6;
Indexes[1,7] = index7;
Indexes[1,8] = index8;
Indexes[1,9] = index9;
Indexes[1,10] = index10;
Array: C_Indexes[1,10](0);
array_copy(Indexes,1,C_Indexes,1,10)
array_sort(C_Indexes,1,10,True);
Do I need the 1 in the Array [ 1 , 10 ]
once sorted would you suggest I do a
if C_Indexes[1,1.....5] = Indexes[1,1] then etc.....
is that the best way to order and identify the highest 5 values?
Thanks
QUICK UPDATE I have taken out the 1 in [ 1 , 10 ] and gotten it to compile.
still kinda shooting in the dark a little