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

◆ LastIndexOf()

proto native int string::LastIndexOf ( string sample)
private

Finds last 'sample' in 'str'. Returns -1 when not found.

Аргументы
samplestring Finding string
Возвращает
int - Returns position where sample starts, or -1 when sample not found
string str = "Hello World";
Print( str.IndexOf( "l" ) );
>> 9
proto void Print(void var)
Prints content of variable to console/log.
proto native int IndexOf(string sample)
Finds 'sample' in 'str'. Returns -1 when not found.

Используется в ParticleList::RegisterParticleByFullPath().