OsFormatString

From OpenSimulator

Revision as of 09:40, 19 November 2010 by Fritigern (Talk | contribs)

Jump to: navigation, search

string osFormatString(string format,list params)

//
//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)); 
    }
}
Personal tools
General
About This Wiki