User:Ugleh Ulrik/LastName
< User:Ugleh Ulrik
Jump to navigation
Jump to search
Revision as of 22:12, 19 April 2010 by Ugleh Ulrik (talk | contribs) (Created page with 'Function to get the persons last name only. '''Function''' <lsl> string LastName (key k){ list ln = llParseString2List(llKey2Name(k),[" "],[]); string lastn = llList2String(ln,...')
Function to get the persons last name only.
Function
<lsl>
string LastName (key k){
list ln = llParseString2List(llKey2Name(k),[" "],[]);
string lastn = llList2String(ln,1);
return lastn;
}
</lsl>
Example <lsl> string LastName (key k){ list ln = llParseString2List(llKey2Name(k),[" "],[]); string lastn = llList2String(ln,1); return lastn; }
default {
touch_start(integer total_number) { llSay(0, LastName(llGetOwner())); }
} </lsl>