Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string NCName = "nameofnotecard";
- string LongString;
- integer nLine
- key QueryNotecard;
- default
- {
- touch_start(integer num)
- {
- LongString = "";
- QueryNotecard = llGetNotecardLine(NCName,nLine = 0);
- }
- dataserver(key query_id, string data)
- {
- if (query_id == QueryNotecard)
- {
- if (data == EOF)
- {
- llSay(0,LongString);
- }
- else
- {
- if(llStringLength(LongString) < 1023);
- {
- LongString += data;
- notecardQueryId = llGetNotecardLine(NCName,++nLine);
- }
- else
- {
- llSay(0,"The text in the notecard is longer than 1023 characters, String will be truncated.");
- llSay(0,LongString);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement