mIRC Home    About    Download    Register    News    Help

Print Thread
readini #103937 27/11/04 05:15 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
i have this:

$readini(mirc.ini, options, n1)

and that returns

5,100,1,0,634,7,37,0,8,1,1,1,0,0,1,1,1,1,0,0,1,1,1,0,5,0,1,0,0,0,1,0,0

how can i get the value from the number 13 ?

5,100,1,0,634,7,37,0,8,1,1,1,0,0,1,1,1,1,0,0,1,1,1,0,5,0,1,0,0,0,1,0,0


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: readini #103938 27/11/04 05:23 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
$gettok($readini($mircini,options,n1),13,44)


New username: hixxy
Re: readini #103939 27/11/04 05:29 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
thnx

do you also know how i can make this as smoth as possible?
i trying to read from mirc.ini if loging is enabled, the problem is that i have 2 lines to check, dont know if its cos im tired, but cant figure out how to solve it.. :tongue:

this line return: 0 if channel log is disabled, else 1
$gettok($readini($mircini,options,n1),13,44)

this line return: 0 if chat log is disabled, else 1
$gettok($readini($mircini,options,n1),14,44)

it should check line 1 .. if thats disabled it should go to line 2, if that also disabled it should set a %var 0, if 1 of the lines is enabled it should reurn a %var 1 .. :tongue:

Last edited by sparta; 27/11/04 05:41 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: readini #103940 27/11/04 06:24 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Code:
var %varname = $or( [ $gettok($readini($mircini,options,n1),13-14,44) ] )


Spelling mistakes, grammatical errors, and stupid comments are intentional.