Without having the data in the file it's impossible to help you.

When you test it, what is the value of $2, and can you please provide the relevant section?

For example if $2 is "word", you must have a section named "word" in the INI file, with an item called "R", which has an associated value.

And you didn't say why this isn't working, are you getting $null for the $readini when it should have a value?


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net