Advertisement
Guest User

dataserver

a guest
Aug 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. dataserver(key _QueryId, string _data)
  2. {
  3.  
  4. if(_QueryId == owner_name_query ) {
  5. // if(_debug) llOwnerSay(response);
  6. owner_display_name = _data;
  7. }
  8. if( kQuery == NULL_KEY) llOwnerSay("The Notecard '" + gStrNotecard + "' Could not be read . This could be beacuse of privaliges.");
  9. if(_QueryId == kQuery)
  10. {
  11.  
  12. if(_data != EOF) {
  13. if ((llGetSubString(_data, 0, 1) != "!#") || (_data == "")) // Check if the line should be skipped
  14. {
  15. integer hashIndex = llSubStringIndex(_data,"#")+1;
  16. integer length = llStringLength(_data)-1;
  17. string Lines_Temp = llGetSubString(_data,hashIndex,length);
  18. list temp_list = llCSV2List(Lines_Temp);
  19. if(llGetListLength(temp_list)>1)
  20. gCard_Lines_Temp = gCard_Lines_Temp + temp_list;
  21. else
  22. gCard_Lines_Temp += Lines_Temp;
  23. if(_debug )llOwnerSay("(DEBUG) Line : " + (string)iLine + ", DATA " +llGetSubString(_data,hashIndex,length));
  24. }
  25.  
  26. ++iLine; // Increment the line no.
  27. kQuery = llGetNotecardLine(gStrNotecard ,iLine);
  28.  
  29. } else {
  30. if(_debug )llOwnerSay("(DEBUG) End of notecard '" + gStrNotecard +"' reached. "+ (string)iLine + " items read...");
  31. note_card_finished(gStrNotecard);
  32. return; // Nothing more to be done; exit the event
  33.  
  34. }
  35. }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement