where is the mistake? - 03/05/03 12:41 AM
this works for getting a specific number at a specific place out of a txt file:
so i thought this would work too:
but it doesnt...
any suggestions?
Code:
alias fstats { if ($read(fstats.txt,w,*<a href="index.cgi?action=mlall"><B>*</B></a>*)) { var %tm = $read(fstats.txt,$readn) /msg #adasda Total Members: $gettok($mid(%tm,$calc($pos(%tm,mlall) + 10)),1,$asc(<)) }
so i thought this would work too:
Code:
alias fstats { if ($read(fstats.txt,w,*<a href="index.cgi?action=mlall"><B>*</B></a>*)) { var %tm = $read(fstats.txt,$readn) elseif ($read(fstats.txt,w,*Newest Member: <A HREF="index.cgi?action=viewprofile&username=*"><B>*</B>*)) { var %nm = $read(fstats.txt,$readn) /msg #adasda Total Members: $gettok($mid(%tm,$calc($pos(%tm,mlall) + 10)),1,$asc(<)) Newest Member: $gettok($mid(%nm,$calc($pos(%nm,viewprof) + 25)),1,$asc(<)) }
but it doesnt...
any suggestions?