Difference between revisions of "Template:LSL Function/KeyValue"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<noinclude>{{Multi-lang|category=LSL}}</noinclude>{{LSL Injection Test}}{{#if:
<noinclude>{{Multi-lang|category=LSL}}</noinclude>{{LSL Injection Test}}{{#if:


{{#vardefine:p_{{{1|}}}<noinclude>{{{1}}}</noinclude>_desc|The key for the key-value pair}}
{{/Key|{{{1|}}}<noinclude>{{{1}}}</noinclude>}}
{{#if:{{{2|}}}{{{value|}}}<noinclude>*</noinclude>|
{{#if:{{{2|}}}{{{value|}}}<noinclude>*</noinclude>|
{{#vardefine:p_{{{2|}}}<noinclude>{{{2}}}</noinclude>_desc|The value for the key-value pair.  Maximum 2047 characters, or 4095 if using Mono.}}
{{/Value|{{{2|}}}<noinclude>{{{2}}}</noinclude>}}
}}
}}


Line 15: Line 15:
The [[dataserver]] callback parameters are:
The [[dataserver]] callback parameters are:
* A key containing the {{LSLGC|Key/handle|handle}} returned from [[{{#var:name}}]]
* A key containing the {{LSLGC|Key/handle|handle}} returned from [[{{#var:name}}]]
* A string containing a comma-delimited list. <code>llDumpList2String([ integer&nbsp;success, string&nbsp;value&nbsp;OR&nbsp;integer&nbsp;error],",")</code>
* A string containing a comma-delimited list.  
{{#if:{{{ds1|}}}|**{{{ds1|}}}|**The first item is a boolean specifying if the transaction succeeded (1) or not (0).}}
** Failure: <code>llDumpList2String([ [[integer]]&nbsp;{{LSLPT|success}}, [[integer]]&nbsp;{{LSLPT|experience_error}}],",")</code>
{{#if:{{{ds2|}}}|**{{{ds2|}}}|**The second item is a string with a status/error message if it failed or the value if the transaction succeeded.}}
** Success: <code>llDumpList2String([ [[integer]]&nbsp;{{LSLPT|success}}{{#if:{{{d2_type|}}}{{{d2_name|}}}|, [[{{{d2_type}}}{{#var:lang}}|{{{d2_type}}}]]&nbsp;{{LSLPT|{{{d2_name}}}}}{{#if:{{{d3_type|}}}{{{d3_name|}}}|, [[{{{d3_type}}}{{#var:lang}}|{{{d3_type}}}]]&nbsp;{{LSLPT|{{{d3_name}}}}}{{#if:{{{d4_type|}}}{{{d4_name|}}}|, [[{{{d4_type}}}{{#var:lang}}|{{{d4_type}}}]]&nbsp;{{LSLPT|{{{d4_name}}}}}}}}}}} ],",")</code>
{{#if:{{{ds3|}}}|**{{{ds3|}}}
 
{{#if:{{{ds4|}}}|**{{{ds4|}}}}}}}
{{#if:{{{ds1|}}}|**{{{d1|}}}|**The first item is a boolean specifying if the transaction succeeded (1) or not (0).}}
{{#if:{{{ds2|}}}|**{{{d2|}}}|**The second item is a string with a status/error message if it failed or the value if the transaction succeeded.}}
{{#if:{{{ds3|}}}|**{{{d3|}}}
{{#if:{{{ds4|}}}|**{{{d4|}}}}}}}
}}
}}



Revision as of 12:50, 9 July 2014

#var value
p_{{{1}}}_desc The key for the key-value pair
p_{{{2}}}_desc The value for the key-value pair. Maximum 2047 characters, or 4095 if using Mono.
header_footnote_last

The dataserver callback parameters are:

  • A key containing the handle returned from [[]]
  • A string containing a comma-delimited list.
    • Failure: llDumpList2String([ integer success, integer experience_error],",")
    • Success: llDumpList2String([ integer success ],",")
    • The first item is a boolean specifying if the transaction succeeded (1) or not (0).
    • The second item is a string with a status/error message if it failed or the value if the transaction succeeded.
caveats
notes