OsFormatString: Difference between revisions

From OpenSimulator
Jump to navigationJump to search
imported>Fritigern
No edit summary
imported>Fritigern
No edit summary
Line 17: Line 17:


[[Category:OSSL]]
[[Category:OSSL]]
[[Category:OSSL functions without threat level]]

Revision as of 14:58, 8 June 2011

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)); 
    }
}