Template:Needs Translation/
函数名
|
Function: key llDeleteKeyValue( string k );
|
参数:键-值对的键
|
返回值:返回一个句柄(一个键),该句柄可用于标识相应的dataserver事件,以确定此命令是否成功或失败以及结果。
|
注意事项
|
如果您重新编译一个以前与体验相关的脚本,但是在客户端缺乏将脚本编译为体验的能力的情况下重新编译,那么脚本将丢失相关的体验。
|
示例
|
示例1
key trans;
default
{
state_entry()
{
trans = llDeleteKeyValue("FOO");
}
dataserver(key t, string value)
{
if (t == trans)
{
// our llDeleteKeyValue transaction is done
list result = llCSV2List(value);
if (llList2Integer(result, 0) == 1)
{
// the key-value pair was successfully deleted
llSay(0, "New key-value pair was deleted");
}
else
{
// the key-value pair was not deleted
llSay(0, "Key-value failed to delete: " + llList2String(result, 1) );
}
}
}
}
|