DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Sort() [2/2]

proto void Sort ( void param_array[],
int num )

Sorts static array of integers(ascendically) / floats(ascendically) / strings(alphabetically)

Аргументы
param_arrayarray Array to sort
numint How many items will be sorted in array
Возвращает
void
string arrStr[3] = {"Dog", "Car", "Apple"};
Sort(arrStr, 2)
for ( int x = 0; x < 3; x++ )
{
Print( arrStr[x] );
}
>> 'Car'
>> 'Dog'
>> 'Apple'
Icon x
proto void Print(void var)
Prints content of variable to console/log.
proto void Sort(void param_array[], int num)
Sorts static array of integers(ascendically) / floats(ascendically) / strings(alphabetically)

Используется в ActionConstructor::ConstructActions() и EmoteConstructor::ConstructEmotes().