Entries in an ini are stored as key value pairs. You reference the values by their keys.
If you are trying to store a list of items with no meaningful key and the index does not matter, I suggest you store the items as the key instead of the value.
var %file = weapons.ini, %section = $chan
writeini %file %section axe 1
writeini %file %section sword 1
writeini %file %section bow 1
remini weapons.ini %section sword
echo -ag $ini(%file,%section,2)
If you care about the order, you will need to manage changing all the indices yourself when you delete items.
If you ever use $read or $readini, make sure to use the "n" switch so that the text is not evaluated:
$readini(%file,n,$chan,axe). Failing to do so leaves your system vulnerable to malicious users.