mIRC Home    About    Download    Register    News    Help

Print Thread
#181062 17/07/07 09:40 AM
Joined: Jul 2007
Posts: 15
4
4ndr3w Offline OP
Pikka bird
OP Offline
Pikka bird
4
Joined: Jul 2007
Posts: 15
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 .

4ndr3w #181063 17/07/07 10:04 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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
  }
}

4ndr3w #181064 17/07/07 10:10 AM
Joined: Oct 2006
Posts: 166
B
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
Code:
alias inix {
  var %a = $ini($1,$2,0)
  while $readini($1,$2,%a) {
    echo -a $v1
    dec %a
  }
}

/inix inifile item


Kind Regards, blink
SladeKraven #181065 17/07/07 10:11 AM
Joined: Oct 2006
Posts: 166
B
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
I was writing the code but you replied faster. ok.


Kind Regards, blink
b1ink #181071 17/07/07 01:16 PM
Joined: Jul 2007
Posts: 15
4
4ndr3w Offline OP
Pikka bird
OP Offline
Pikka bird
4
Joined: Jul 2007
Posts: 15
thanks alot


Link Copied to Clipboard