|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
06-01-2008 15:17
this is anoying me a bit im not sure if i got it right but i can tell something is way off i cant figure it out, it adds the name but only the last person list visitor_list; default { state_entry() { llListen(-476, "","speedtrap", ""); } on_rez(integer param) { llResetScript(); } listen( integer channel, string name, key id, string message ) { string detected_name = message; { visitor_list += detected_name; } } touch_start(integer touchy) { llSetText(llList2String(visitor_list, 0),<1,1,1>,1); } }
|
|
Brandon Lanzet
Registered User
Join date: 4 Apr 2008
Posts: 13
|
06-01-2008 16:13
...GTA4 is cool.
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
06-02-2008 00:47
Could your problem arise from the fact that you add names to the end of the list but always look at the first element? Try this: touch_start(integer touchy) { llSetText(llList2String(visitor_list, llGetListLength( visitor_list )-1),<1,1,1>,1); }
( not compiled, debugged or tested )
_____________________
From Studio Dora
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
06-02-2008 03:09
dosent work but it compiles
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
06-02-2008 03:34
What does not work? What is your problem? What are you trying to achieve?
_____________________
From Studio Dora
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
06-02-2008 13:18
a list of names that come threw on that channel, but it only shows the last name that came threw and none of the other ones before it
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
06-02-2008 13:50
Of course not. You only ask for one element in the list for your llSetText. Try this: list visitor_list; default { state_entry() { llListen(-476, "","speedtrap", ""); } on_rez(integer param) { llResetScript(); } listen( integer channel, string name, key id, string message ) { string detected_name = message; { visitor_list += detected_name; } } touch_start(integer touchy) { llSetText(llDumpList2String( visitor_list, "\n" ),<1,1,1>,1); } }
This will display all elements I don't know how long a string you can have in a floating text, thats for you to find out.
_____________________
From Studio Dora
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
06-02-2008 14:23
works 
|