Liberty Unleashed
Scripting => Script Help => Topic started by: ZX_Lost_Soul on November 07, 2013, 07:42:58 am
-
txt="Sometext";
How to replace a letter in the string? I try:
txt[1]=3;
txt[1]='c';
txt[1]="c";
local letter="c";
txt[1]=letter.tochar();
...but nothing works(
Maybe Squirel have analog of str_replace() (http://"http://php.net/manual/ru/function.str-replace.php") ?
-
Strings are not arrays. This example wouldn't work. You'll have to create the modified string yourself.
-
isnt a string a char array?