Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Want to remove predefined text at llSetText

Tomfox Wiranata
Registered User
Join date: 20 Dec 2006
Posts: 80
01-11-2007 16:42
Hi Everyone...

....when I use the function llSetText, my defined text appears. but there is also that predefined text, location, object name etc...

how can i make this function show just my text?

thx
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
01-11-2007 16:50
llSetText sets a floaty bit of text over the center of the prim the script is in... and only the text you instruct it to. i.e.: llSetText("This is text", <1.0, 1.0, 1.0>, 1.0); floats This is text over the prim.

Where are you seeing this other information?
_____________________
Tomfox Wiranata
Registered User
Join date: 20 Dec 2006
Posts: 80
01-12-2007 02:04
above....between currently and the amount...

CODE



default
{
state_entry()
{

llSetTimerEvent(2.5);
}



touch_start(integer n)
{
key id = llGetKey();
llSay(0,(string)id);
}


timer()
{
llGetNextEmail("", "");
}

email(string time, string address, string subj, string message, integer num_left) {

if (subj == "test")
llSetText("Current Jackpot: "+message+" L$", <1,0,0>, 5);

}



}




thx
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-12-2007 02:20
Because of the same reason your previous email related script didnt work.
I assume you didnt read the relevant wikki page.

To remove the headers attached to the beginning of the message, use this line:
CODE

message = llDeleteSubString(message, 0, llSubStringIndex(message, "\n\n") + 1);