I have never experienced this issue before and I haven't tested it on other version's of mIRC. Only 6.31 so it may be a new issue. It is intermittent.
The issue I am experiencing is not being able to read the 1st line of the ini file. If I have 4 items in the ini file, $ini tell's me I have 3 and $readini tells me the 1st item doesn't exist. This issue is fixed by making the first line of the ini file blank. Allow me to explain.
file.ini
[item1]
data1=data1
data2=data2
[item2]
data3=data3
data4=data4
extra=extra data
[item3]
data5=data5
data6=data6
Here is an ini file.
$ini(file.ini,0) should return 3.
$ini(file.ini,1) should return 2.
$readini(file.ini,item1,data1) should return data1.
My issue is that mIRC is telling me that [data1] does not exist.
That there are only 2 items in the file.
$ini(file.ini,1) returns 3, because it doesn;t see the first item (data1) and counts the second item (data2) as the first.
Now if I make the first line of the ini file blank, and [data1] is on the second line of the file, mIRC.ini reads it just fine.
I found this error when my code was telling me the item didnt exist. I checked the file and saw it did. I ran some tests trying to retrieve the item with $ini and $readini and couldn't get it work. I made line 1 blank and it all worked fine.
I;d love to get some feedback on this issue. Thanks!