Template:Needs Translation/
函数名
|
Function: string llDumpList2String( list src, string separator );
|
参数:
- list src
- string separator
|
返回值:Returns a string that is the list src converted to a string with separator between the entries.
|
示例
|
示例1
list mylist = ["a", "b", "c", "d"];
string tmp = llDumpList2String(mylist, "**");
//tmp now equals: "a**b**c**d"
示例2
list mylist = [<10,5,7>, 100, "c", "d"];
string tmp = llDumpList2String(mylist, "**");
//tmp now equals: "<10,5,7>**100**c**d"
示例3
default{
state_entry(){
list my_list = [1, 2.0, "a string", llGetOwner()];
llOwnerSay("<" + llDumpList2String(my_list,"><") + ">");
//says: "<1><2.000000><a string><a822ff2b-ff02-461d-b45d-dcd10a2de0c2>"
}
}
|