Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dataserver(key _QueryId, string _data)
- {
- if(_QueryId == owner_name_query ) {
- // if(_debug) llOwnerSay(response);
- owner_display_name = _data;
- }
- if( kQuery == NULL_KEY) llOwnerSay("The Notecard '" + gStrNotecard + "' Could not be read . This could be beacuse of privaliges.");
- if(_QueryId == kQuery)
- {
- if(_data != EOF) {
- if ((llGetSubString(_data, 0, 1) != "!#") || (_data == "")) // Check if the line should be skipped
- {
- integer hashIndex = llSubStringIndex(_data,"#")+1;
- integer length = llStringLength(_data)-1;
- string Lines_Temp = llGetSubString(_data,hashIndex,length);
- list temp_list = llCSV2List(Lines_Temp);
- if(llGetListLength(temp_list)>1)
- gCard_Lines_Temp = gCard_Lines_Temp + temp_list;
- else
- gCard_Lines_Temp += Lines_Temp;
- if(_debug )llOwnerSay("(DEBUG) Line : " + (string)iLine + ", DATA " +llGetSubString(_data,hashIndex,length));
- }
- ++iLine; // Increment the line no.
- kQuery = llGetNotecardLine(gStrNotecard ,iLine);
- } else {
- if(_debug )llOwnerSay("(DEBUG) End of notecard '" + gStrNotecard +"' reached. "+ (string)iLine + " items read...");
- note_card_finished(gStrNotecard);
- return; // Nothing more to be done; exit the event
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement