$ini() and $readini() will fail when using a temporary variable (set by /var) that stores a number. For example:

var %users.total $ini(users.ini, 0)
var %users.current 0
while (%users.total > %users.current) {
inc %users.current
var %nick $ini(users.ini, %users.current)
...
}

The script here will halt on line 5 "var %nick $ini(users.ini, %users.current)" with the error "* Invalid format: $ini (line 5, script.ini)"

The script will not halt if using a global variable (defined with /set) or if the %users.current variable returns anything other than a number. In this scenario, I simply changed the /vars to /sets and everything worked fine.

-- [email]darkfire@dalnet[/email]