Hey, can you please help me on array sorting?
I read this:
https://forums.alliedmods.net/showthread.php?t=187237
Its for SourceMod I know but languages are same.
Code:
new nums[] = {5, 4, 3, 2, 1};
SortIntegers(nums, charsmax(nums), Sort_Ascending);
for(new i = 0; i <= charsmax(nums); i++){
client_print(id, print_chat, "%i ", nums[i]);
}
It should print 1 first then 2, 3, 4 and 5 but its not.