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

◆ Set()

proto void string::Set ( int index,
string input )
private

Sets the n-th character in string with the input, replacing previous value.

Аргументы
indexindex to be replaced
inputsingle non-terminated character value to replace with
Предупреждения
VME When index less than 0 or greater than string length
(Diag) VME When string is empty or greater than length of 1 (Retail) Calls 'string.Insert' except it replaces only the initial character
string str = "Hello World";
str[4] = "O";
Print( str );
>> 'HellO World'
proto void Print(void var)
Prints content of variable to console/log.
string str = "Hello World";
str[6] = "Test ";
Print( str );
>> 'Hello Test orld'