load to your remotes and write /log.viewer or click log viewer from the menubar..note:logviewer view the log files present in $logdir ( the log directory u setting in ur mirc options )
alias log.viewer {
if (!$window(@logviewer)) {
/window -CkSzl18 @LogViewer
var %trash " $+ $findfile($logdir,*.log,@LogViewer,aline -l @LogViewer $gettok($nopath($1-),1,46)) $+ "
}
else {
echo -a LogViewer is currently running
}
}
menu @LogViewer {
dclick {
clear @LogViewer
.loadbuf -e @LogViewer " $+ $findfile($logdir,$+ $sline(@LogViewer,1) $+ .log,1) $+ " 0
}
stats {
echo -a 12[!] 4there are currently 12 $+ $findfile($logdir,*.log,0) 4log files
}
}
menu menubar,channel {
Log Viewer:/log.viewer
}
gex the reason why it isnt a 10/10 is because people who come and see what you and everyone else posts here might not see it as a 10 like you i have seen alot of stuff on here get awsome reviews and it doesnt amount to a pile of dog poop but you have to look at what you posted a simple log viewer mirc already has a log viewer built in and alot of people see that and no that and will look at your snippet as being not usefull at all even if it had a 1000 lines of flawless hard code every body rates diffrently you get that on all mirc related site that takes snippets addons and scripts you have to look past the scoreing and think of how many people will use t his in the next year or so possiably 1000\'s of people could when i posted my simple log viewer on a diffrent site i got a score of 3 and it isnt no bigger then what you posted but it did get downloaded 20+ time the first day i posted it that alone was good enough for me ,im sure if you add a nice dialog and maybe DCX or MDX to it you will probally get alot better of a score
\" let the rater tell me y its 5/10 and not 10/10 ???\"
I believe you said that. Hence, you\'re complaining about your score.
I wasnt saying the snippet needs to be long, you just have it 5 lines longer than it needs to be in the first place, so its not gonna be a 10/10, since its not perfectly coded.
and about that var being the only thing to prevent an error. I\'ll call your attention to the help file (another reason I would say this wouldnt have even been a 5)
/help /echo
and find this line:
The -q switch makes it not display the text if called from an alias using the . prefix.
SO um.. You couldnt find any way to prevent the error, besides setting a useless variable? clears throat yeah. You should try reading some more in the help file, THEN ask for 10/10 on your snippets.
Okay i will tell u..the snippet isnt with the number of the lines but with the quality and functionality..beside that//the var %trash was the only way to prevent the error from showing...u can replace it with echo or anythg it will give stupid echo in the status window :) in addition that i didnt say i want 10/10 ..... but i didnt make that snippet that fast or that easy to recieve only 5....anyway i am still saying this deserves more than 5 because it does what its supposed to do. it has no bugs.i c its high quality.....err handling..evry thg so what r u up for....number of lines?ummm i have an addon of 400 lines .. i made in 15 mins.... easy with low quality..whearas i have another 49 lines i made in 3 weeks.....so quit it
Man, I hate seeing people complain about a 5/10 on a 15 line snippet that doesnt really do anything besides keep you from having to open a text document. The script really doesnt do much. It loadbufs a text document into a window \"QUICK GIVE IT A 10/10\" seriously. And even as it is, you still have command prefixes in your script, and 5 lines of {}\'s that you dont even need.
Then this line.
var %trash \" $+ $findfile($logdir,*.log,@LogViewer,aline -l @LogViewer $gettok($nopath($1-),1,46)) $+ \"
why are you setting a variable that you never reference again?
For usefulness I\'d say maybe 2/10 - i can just open a text document to read the log.
For the scripting, maybe 3/10 maybe 4/10 - You still have command prefixes, unnecessary brackets, and you\'re setting a useless variable
SO Like I said, quit complaining when people rate you higher than you deserve in the first place ffs.