By the way: ArrayDeleteItem
removes an item from the array entirely. It doesn't just remove the content of the item. It works like this:
Code:
new Array:a = ArrayCreate();
ArrayPushCell(a, 1); // Content: {1}
ArrayPushCell(a, 0); // Content: {1,0}
new Array:b = ArrayClone(a); // Content: {1,0}
ArrayDeleteItem(b, 0); // Content: {0}
ArrayGetCell(b, 0); // It looks like item 0 now contains 0, because the old item 1 shifts down
new Array:c = ArrayClone(a); // Content: {1,0}
ArrayDeleteItem(c, 1); // Content: {1}
ArraySetCell(c, 1, 1); // Error: 1 is not a valid item
__________________