<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
	<id>http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlCreateKeyValue</id>
	<title>LlCreateKeyValue - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlCreateKeyValue"/>
	<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlCreateKeyValue&amp;action=history"/>
	<updated>2026-06-01T04:37:53Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlCreateKeyValue&amp;diff=982&amp;oldid=prev</id>
		<title>2021年8月17日 (二) 03:12 Kjf</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlCreateKeyValue&amp;diff=982&amp;oldid=prev"/>
		<updated>2021-08-17T03:12:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2021年8月17日 (二) 03:12的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;第4行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第4行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{函数详情&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{函数详情&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|函数名 = Function: key llCreateKeyValue( string k, string v );&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|函数名 = Function: key llCreateKeyValue( string k, string v );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|参数= 参数：• string	k	–	&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The key for the key-value pair	&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|参数= 参数：• string	k	–	&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;‎键值对的键&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;• string	v	–	&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The value for the key-value pair. Maximum &lt;/del&gt;2047 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;characters, or &lt;/del&gt;4095 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;if using Mono.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;• string	v	–	&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;‎键值对的值。最大 &lt;/ins&gt;2047 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;个字符，如果使用 Mono，则最多为 &lt;/ins&gt;4095 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;个字符。‎&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|返回值= 返回值：返回一个句柄(一个键) ，该句柄可用于标识相应的数据服务器事件，以确定该命令是成功还是失败。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|返回值= 返回值：返回一个句柄(一个键) ，该句柄可用于标识相应的数据服务器事件，以确定该命令是成功还是失败。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kjf</name></author>
		
	</entry>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlCreateKeyValue&amp;diff=314&amp;oldid=prev</id>
		<title>Ty：创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: key llCreateKeyValue( string k, string v ); |参数= 参…”</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlCreateKeyValue&amp;diff=314&amp;oldid=prev"/>
		<updated>2020-05-17T07:58:52Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: key llCreateKeyValue( string k, string v ); |参数= 参…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{函数详情&lt;br /&gt;
|函数名 = Function: key llCreateKeyValue( string k, string v );&lt;br /&gt;
|参数= 参数：• string	k	–	The key for the key-value pair	&lt;br /&gt;
• string	v	–	The value for the key-value pair. Maximum 2047 characters, or 4095 if using Mono.&lt;br /&gt;
|返回值= 返回值：返回一个句柄(一个键) ，该句柄可用于标识相应的数据服务器事件，以确定该命令是成功还是失败。&lt;br /&gt;
&lt;br /&gt;
|注意事项=&lt;br /&gt;
如果你重新编译了一个脚本，这个脚本以前与一个体验相关，但是客户端缺乏将脚本编译成一个体验的能力，那么这个脚本就会失去相关的体验。 出于这个原因，最好使用 llupdatekeyvalue，它将覆盖任何现有的值，或者在没有该名称的情况下创建一个新的 kvp 键。&lt;br /&gt;
&lt;br /&gt;
|示例=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
key trans;&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    touch_start(integer total_number)&lt;br /&gt;
    {&lt;br /&gt;
        trans = llCreateKeyValue(&amp;quot;FOO&amp;quot;, &amp;quot;BAR&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    dataserver(key t, string value)&lt;br /&gt;
    {&lt;br /&gt;
        if (t == trans)&lt;br /&gt;
        {&lt;br /&gt;
            // our llCreateKeyValue transaction is done&lt;br /&gt;
            integer result = (integer)llGetSubString(value, 0, 0);&lt;br /&gt;
            if (result == 1)&lt;br /&gt;
            {&lt;br /&gt;
                // the key-value pair was successfully created&lt;br /&gt;
                llSay(0, &amp;quot;New key-value pair was created&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
            else&lt;br /&gt;
            {&lt;br /&gt;
                // the key-value pair was not created&lt;br /&gt;
                integer error = (integer)(llGetSubString(value, 2, -1));&lt;br /&gt;
                llSay(0, &amp;quot;Key-value failed to create: &amp;quot; + llGetExperienceErrorMessage(error));&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    } &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|相关函数=&lt;br /&gt;
[[llGetExperienceErrorMessage]]&lt;br /&gt;
[[llReadKeyValue]]&lt;br /&gt;
[[llUpdateKeyValue]]&lt;br /&gt;
[[llDeleteKeyValue]]&lt;br /&gt;
[[llDataSizeKeyValue]]&lt;br /&gt;
[[llKeyCountKeyValue]]&lt;br /&gt;
[[llKeysKeyValue]]&lt;br /&gt;
&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Ty</name></author>
		
	</entry>
</feed>