OsFormatString

From OpenSimulator
Revision as of 20:25, 11 June 2011 by imported>Fritigern
Jump to navigationJump to search
OsFormatString
Threat Level Low
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>