Yiffy Yaffle
Purple SpiritWolf Mystic
Join date: 22 Oct 2004
Posts: 2,802
|
12-28-2005 05:19
I'm trying to make my own little networked vendor system. i have everything intact and it all works perfectly except 1 minor thing. When i attempt to email the items/prices list from the notecard in the server prim to the script in the vendor prim, the vendor receives all the information incorrectly like this [ ObjectAObjectBObjectC ]. The vendors hover text shows that instead of ObjectA. How do i separate the list items? i have searched the forums and found no results for it. I know it can be done or their wouldn't be so many networked vendor systems already. I prefer to make my own though. Heres what i have... SERVER: llEmail(vendorkey+mail, (string)items, (string)prices); VENDOR: email(string time, string address, string subject, string message, integer num_left) { string user = llDeleteSubString(message, 0, llSubStringIndex(message, "\n\n"  + 1); items = (list)subject; prices = (list)user; state run_store; } So changing a list to a string is un reversible on the other end? Or is there a different way to send it?
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
12-28-2005 05:48
Trying looking up llDumpList2String and llParseString2List. You dump your list with some separator - ^ or | are common ones, then send that string, then reconstitute the list at the other end by parsing the string to list.
|
Yiffy Yaffle
Purple SpiritWolf Mystic
Join date: 22 Oct 2004
Posts: 2,802
|
12-28-2005 05:52
wow thx I didnt know those lines existed. 
|