OsFormatString: Difference between revisions

From OpenSimulator
Jump to navigationJump to search
imported>Fritigern
mNo edit summary
imported>Fritigern
No edit summary
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
{{osslfunc|
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
threat_level = Low
|- valign="top"
|
|'''Threat Level''' || Low
function_syntax = <source lang="lsl">
 
|- valign="top"
|'''Function Syntax''' || <source lang="lsl">
string osFormatString(string format,list params)
string osFormatString(string format,list params)
</source>
</source>
|- valign="top"
|
|'''Example(s)||<source lang="lsl">
ossl_example = <source lang="lsl">
//
//
//osFormatString() example, by Tom Earth.
//osFormatString() example, by Tom Earth.
Line 23: Line 20:
}
}
</source>
</source>
 
|  
|}
additional_info =
<Additional info/content goes here>
|
 
}}
[[Category:OSSL Functions]]

Revision as of 22:32, 12 June 2011

string osFormatString(string format,list params)
No descriptions provided
Threat Level Low
Permissions No permissions specified
Extra Delay No function delay specified
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)); 
    }
}