Alrighty, I'm working for a dialog to save the channels into a list, the list loads fine, no loops that cause mirc to freeze, just when you try to add something, it NEVER saves, and no errors record. On Dialog
Code:
on *:dialog:cmd4options:7:sclick: {
if ($did(cmd4options,6).text) {
var %i 1
while ($readini(cmd4vars.ini,chans,%i)) {
inc %i
}
writeini cmd4vars.ini chans %i $did(cmd4options,6,1).text
did -r cmd4options 6
did -a cmd4options 4 $readini(cmd4vars.ini,chans,%i)
}
}
You have the event and id portions of the on DIALOG line transposed.
You have: on *:dialog:cmd4options:7:sclick: {
Correct: on *:dialog:cmd4options:sclick:7: {
There are some problems with the rest of the code as well. Here is a version that works the way I think you intended:
Code:
on *:dialog:cmd4options:sclick:7: {
if (#?* !iswm $did(cmd4options,6).text) return
writeini cmd4vars.ini chans $did(cmd4options,6,1).text $ctime
did -a cmd4options 4 $did(cmd4options,6,1).text
did -ra cmd4options 6 $chr(35)
}
You were missing the 'value' for the writeini command, so I used $ctime for lack of something better to use. You will be able to tell when you added that channel to the list. :P