mIRC Home    About    Download    Register    News    Help

Print Thread
#181062 17/07/07 09:40 AM
4
4ndr3w
4ndr3w
4
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 .

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

#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

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.

b1ink #181071 17/07/07 01:16 PM
4
4ndr3w
4ndr3w
4
thanks alot


Link Copied to Clipboard