mIRC Home    About    Download    Register    News    Help

Print Thread
#21658 30/04/03 02:23 PM
Joined: Jan 2003
Posts: 148
K
Knappen Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
Is there a way to read the whole section of an ini file wihtout spesifying all of n`s; like: $readini($mircini,rfiles,*) or something... or do i have to do $readini($mircini,rfiles,n0)
$readini($mircini,rfiles,n1) and so on....

#21659 30/04/03 02:44 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
where would you read 'em all?
var %i = 1, %j = $ini(file.ini,section,0)
while ( %i <= %j ) {
set $+(%,var,%i) $readini(file.ini,section,$ini(file.ini,section,%i))
inc %i
}


Code:
//if ( khaled isgod ) echo yes | else echo no

Link Copied to Clipboard