mIRC Homepage
Posted By: 4ndr3w INI Help. - 17/07/07 09:40 AM
Hey, im just trying 2 write a loop to get all info from

[here]
1=one
2=two
3=three
4=four

but im trying 2 get it to echo backwards so the msgs will be

four
three
two
one

its really confusing me lol so if anyone could help me =] would be very appresated
thanks .
Posted By: SladeKraven Re: INI Help. - 17/07/07 10:04 AM
Code:
alias someini {
  var %x =  $ini(someini.ini,here,0)
  while (%x) {
    echo -a $readini(someini.ini,here,$ini(someini.ini,here,%x)))
    dec %x
  }
}
Posted By: b1ink Re: INI Help. - 17/07/07 10:10 AM
Code:
alias inix {
  var %a = $ini($1,$2,0)
  while $readini($1,$2,%a) {
    echo -a $v1
    dec %a
  }
}

/inix inifile item
Posted By: b1ink Re: INI Help. - 17/07/07 10:11 AM
I was writing the code but you replied faster. ok.
Posted By: 4ndr3w Re: INI Help. - 17/07/07 01:16 PM
thanks alot
© mIRC Discussion Forums