Re: remove multiple values from indexed table
Posted: Thu Nov 24, 2011 6:27 am
I could have sworn that the code you gave me, Denarii, was working (well) for several months. Yesterday I noticed that it doesn't work as I thought that it does. :removeall does remove everything, but the indexes will not be readjusted to be sequential. (If it hasn't been working all this time, which is most likely, it probably explains why I've had so much trouble killing people in duels - my fault for not testing it properly 5 months ago)
I'm wrote the following now instead, which is working for me, but I haven't figured out how to put it into your metatable thingy (which makes for a nicer syntax). Still, this is working for me so I am happy, but I thought I ought to share it:
I'm wrote the following now instead, which is working for me, but I haven't figured out how to put it into your metatable thingy (which makes for a nicer syntax). Still, this is working for me so I am happy, but I thought I ought to share it: