$findfile Problem ( I think) - 07/08/06 01:00 PM
hey y'all
i am having a problem with finding files for my lrycis script. the part of the code that is giving me trouble is:
and all i get is this:
I have found 0 files for your query of: = *metallica*ride*the*lightning*
its always 0 (zero) and it doesnt send the lyrics results. can yall have a looksie and tell me where i screwed up?
============================================================
ps the "=" that is in the blue line above isnt supposed to be there either...i dotn have any code in my script that returns an "=" sign
any help would be gratefull
thanks
i am having a problem with finding files for my lrycis script. the part of the code that is giving me trouble is:
Code:
elseif ( @find == $1 ) { set %search = $+(*,$replace($2-,$chr(32),$chr(42)),*) echo -a Searching for: %search if ( $findfile($lydir,%search,0) > 10 ) { notice $nick Sorry $upper($nick) $+ , but i have more that 5 matches, try grabbing my list with: @ $+ $me } elseif ( $findfile($lydir,%search,0) < 10 ) && $findfile($sound(mp3),%search,0) != 0 ) { senote } elseif ( $findfile($lydir,%search,0) == 0 ) { notice $nick Sorry $nick i have NO results for %search } } } ;======================================================= alias senote { var %count = 1 Notice $nick I have found $findfile($lydir,$+(*,%search,*),0) files for your query of: %search while %count < 10 { .echo -qa $findfile($lydir,$+(*,%search,*),0,timer 1 $count(%count + 1) notice $nick $+(!,$me) $nopath($1-)) inc %count } }
and all i get is this:
I have found 0 files for your query of: = *metallica*ride*the*lightning*
its always 0 (zero) and it doesnt send the lyrics results. can yall have a looksie and tell me where i screwed up?
============================================================
ps the "=" that is in the blue line above isnt supposed to be there either...i dotn have any code in my script that returns an "=" sign
any help would be gratefull
thanks