OsFormatString: Difference between revisions
From OpenSimulator
Jump to navigationJump to search
imported>Fritigern No edit summary |
imported>Fritigern No edit summary |
||
| Line 1: | Line 1: | ||
''' | {| width="100%" style="border: thin solid black" | ||
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}''' | |||
|- valign="top" | |||
|'''Threat Level''' || <Threat Level goes here> | |||
<source lang="lsl"> | |- valign="top" | ||
|'''Function Syntax''' || <source lang="lsl"> | |||
string osFormatString(string format,list params) | |||
</source> | |||
|- valign="top" | |||
|'''Example(s)||<source lang="lsl"> | |||
// | // | ||
//osFormatString() example, by Tom Earth. | //osFormatString() example, by Tom Earth. | ||
| Line 16: | Line 24: | ||
</source> | </source> | ||
|} | |||
<Additional info/content goes here> | |||
[[Category:OSSL Functions]] | |||
[[Category:OSSL]] | [[Category:OSSL]] | ||
[[Category:OSSL functions without threat level]] | [[Category:OSSL functions without threat level]] | ||
Revision as of 23:11, 8 June 2011
| OsFormatString | |
| Threat Level | <Threat Level goes here> |
| Function Syntax | string osFormatString(string format,list params)
|
| Example(s) | //
//osFormatString() example, by Tom Earth.
//
default
{
state_entry()
{
string to_format = "My name is {0}. My owner is {1}. I am in the sim {2}";
list format = [llGetObjectName(),llKey2Name(llGetOwner()),llGetRegionName()];
llOwnerSay(osFormatString(to_format, format));
}
}
|
<Additional info/content goes here>