Advertisement
Gayngel

Untitled

Dec 17th, 2015
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. string NCName = "nameofnotecard";
  2. string LongString;
  3. integer nLine
  4. key QueryNotecard;
  5.  
  6.  
  7. default
  8. {
  9. touch_start(integer num)
  10. {
  11. LongString = "";
  12. QueryNotecard = llGetNotecardLine(NCName,nLine = 0);
  13. }
  14.  
  15. dataserver(key query_id, string data)
  16. {
  17. if (query_id == QueryNotecard)
  18. {
  19. if (data == EOF)
  20. {
  21. llSay(0,LongString);
  22. }
  23. else
  24. {
  25. if(llStringLength(LongString) < 1023);
  26. {
  27. LongString += data;
  28. notecardQueryId = llGetNotecardLine(NCName,++nLine);
  29. }
  30.  
  31. else
  32. {
  33. llSay(0,"The text in the notecard is longer than 1023 characters, String will be truncated.");
  34. llSay(0,LongString);
  35. }
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement