steph Arnott Posted April 3, 2019 Share Posted April 3, 2019 1 minute ago, VenKellie said: da fudge? strings, vectors and integers can all go into a list, thats what a list is for You can not use the first code if the data is already in a list. End of. Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted April 3, 2019 Share Posted April 3, 2019 16 minutes ago, steph Arnott said: You can not use the first code if the data is already in a list. End of. What "data," our dearest Steph? Where would the potential list you are talking about be? In the code snippet given by OP, the only list (objectlist) is being added to, not checked from. It is very obvious from her code and explanation that she wants to not add a string to a list if it contains a set phrase. Link to comment Share on other sites More sharing options...
steph Arnott Posted April 3, 2019 Share Posted April 3, 2019 1 minute ago, Wulfie Reanimator said: What "data," our dearest Steph? Where would the potential list you are talking about be? In the code snippet given by OP, the only list (objectlist) is being added to, not checked from. It is very obvious from her code and explanation that she wants to not add a string to a list if it contains a set phrase. It stated remove from list. Title of thread 'Delete Item in List'. Good day. Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted April 3, 2019 Share Posted April 3, 2019 (edited) 5 minutes ago, steph Arnott said: It stated remove from list. Title of thread 'Delete Item in List'. Good day. So you never actually read the question or code? Do you not understand what "context" is? Edit: Okay, so no. Edited April 3, 2019 by Wulfie Reanimator Link to comment Share on other sites More sharing options...
steph Arnott Posted April 3, 2019 Share Posted April 3, 2019 Just now, Wulfie Reanimator said: So you never actually read the question or code? Do you not understand what "context" is? I understood the title and understood this ' i'd like to delete that item from the list. possible? '. Good day. Link to comment Share on other sites More sharing options...
steph Arnott Posted April 3, 2019 Share Posted April 3, 2019 (edited) 6 hours ago, VenKellie said: integer contents_total = llGetInventoryNumber(INVENTORY_OBJECT); integer counter = 0; for (counter; counter < contents_total; ++counter) { string contents_name = llGetInventoryName(INVENTORY_OBJECT, counter); if (llSubStringIndex(llToLower(contents_name), "freya") == -1) { objectlist += [contents_name]; } } theres how it should be since i think steph was being picky with variable types. BTW it was already stated that the count was ZERO in the 'for' block, which you changed. What you added was an extra memory usage line of code. Edited April 3, 2019 by steph Arnott Link to comment Share on other sites More sharing options...
VenKellie Posted April 3, 2019 Share Posted April 3, 2019 @steph Arnott were you born to be a compulsive complainer or just being a total dick on here? Link to comment Share on other sites More sharing options...
steph Arnott Posted April 3, 2019 Share Posted April 3, 2019 Just now, VenKellie said: @steph Arnott were you born to be a compulsive complainer or just being a total dick on here? Was you born an abuser? You clearly show signs you are. FYI this is a code forum and you have provided none past any base value. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now