LlDeleteSubString
De DigiWiki.
Version du 25 juin 2012 à 23:19 par Djphil (discuter | contributions)
default { state_entry() { string ex = "abcdefghi"; llDeleteSubString(ex, 4, 7); //Incorrect! } }
default { state_entry() { string ex = "abcdefghi"; ex = llDeleteSubString(ex, 4, 7); //Correct llSay(0, ex); //Would say "abcdi" } }
//-- special case default { state_entry() { string ex = "abcdefghi"; llSay( 0, llDeleteSubString(ex, 4, 7) ); //Would say "abcdi" //-- acceptable if you do NOT want to change the contents of 'ex', only the output } }


