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

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 11: Line 11:
{{#if:{{{key|}}}|{{LSL Function/KeyValue/Key|{{{key}}}}}}}
{{#if:{{{key|}}}|{{LSL Function/KeyValue/Key|{{{key}}}}}}}
{{#if:{{{2|}}}<noinclude>*</noinclude>|{{LSL Function/KeyValue/Value|{{{2}}}}}}}
{{#if:{{{2|}}}<noinclude>*</noinclude>|{{LSL Function/KeyValue/Value|{{{2}}}}}}}
{{#if:{{{value|}}}|{{LSL Function/KeyValue/Value|{{{value}}}}}}}
{{#if:{{{value|}}}<noinclude>*</noinclude>|{{LSL Function/KeyValue/Value|{{{value}}}|Note! This value may contain commas.}}}}


{{#vardefine:p_{{{d2_name|}}}_desc|{{#var:p_{{{d2_name|}}}_desc}}{{{d2_desc|}}}}}
{{#vardefine:p_{{{d2_name|}}}_desc|{{#var:p_{{{d2_name|}}}_desc}}{{{d2_desc|}}}}}
Line 58: Line 58:
! value
! value
|-
|-
{{VarPair|p_{{{1|}}}<noinclude>{{{1}}}</noinclude>_desc}}
{{VarPair|p_{{{1}}}_desc}}
|-
|-
{{VarPair|p_{{{2|}}}<noinclude>{{{2}}}</noinclude>_desc}}
{{VarPair|p_{{{2}}}_desc}}
|-
{{VarPair|p_{{{value}}}_desc}}
|-
|-
{{VarPair|spec}}
{{VarPair|spec}}

Revision as of 17:06, 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.
p_{{{value}}}_desc The value for the key-value pair. Maximum 2047 characters, or 4095 if using Mono. Note! This value may contain commas.
spec

Dataserver

The dataserver callback parameters are:

  • A key containing the handle returned from [[]]
  • A string containing a comma-delimited list. llDumpList2String([ integer success ] + components);
    • components vary depending upon success or failure of request.
    • Failure: llDumpList2String([ 0, integer error],",")
    • Success: llDumpList2String([ 1 ],",")
String Components
• integer success A boolean specifying if the transaction succeeded (1) or not (0).
• integer error An XP_ERROR_* flag that describes why the operation failed.
caveats
notes