|
Itchy Stiglitz
Mostly Harmless
Join date: 24 Apr 2006
Posts: 23
|
05-17-2006 19:54
Is there any example code out there where they take each line of a note and add those lines to a list value? I have the note data coming in I'm looping through it but after that kablooey!
|
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
05-17-2006 21:38
From: Itchy Stiglitz Is there any example code out there where they take each line of a note and add those lines to a list value? I have the note data coming in I'm looping through it but after that kablooey! I altered the code from the wiki: string gName = "Testnotecard"; integer gLine = 0; key gQueryID; list cardLines;
default { state_entry() { cardLines = []; gQueryID = llGetNotecardLine(gName, gLine); }
dataserver(key query_id, string data) { if (query_id == gQueryID) { if (data != EOF) { cardLines += [ data ]; ++gLine; gQueryID = llGetNotecardLine(gName, gLine); } } } }
_____________________
imakehuddles.com/wordpress/
|