mIRC Home    About    Download    Register    News    Help

Print Thread
#229939 20/02/11 03:31 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

I have see that is maybe an mIRC bug when i start making an addon, when it return wrong number of lines on an specific file, i don't know what exactly it is maybe i make something that is wrong, please help to find an solution.

check this image to see the bug:

Direct link: http://img525.imageshack.us/img525/7121/mircbug.png



- Thanks!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
One possibility that occurs to me, is that the $scriptdir path may have spaces in it, thus try changing your line 718 to
Code:
var %f = $qt($scriptdirinfo.txt)
then try your script again.

Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Well i tryied but same result was returned (0)

The issue is still exist


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
It's important to point out that you're not confirming the existence of the file in that code. Your use of if (!%f) { ... } merely checks that the text of the filename is not 0/$null (and is therefore redundant since obviously it can't be as the variable is set in the previous line).

If you actually check for the file's existence in that code with $isfile(%f) does it say the file exists?


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Originally Posted By: starbucks_mafia
It's important to point out that you're not confirming the existence of the file in that code. Your use of if (!%f) { ... } merely checks that the text of the filename is not 0/$null (and is therefore redundant since obviously it can't be as the variable is set in the previous line).

If you actually check for the file's existence in that code with $isfile(%f) does it say the file exists?


Yes you're right problem solved!, thanks

Last edited by westor; 20/02/11 07:55 PM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
In your code, the line

if (![color:red]%f) { d_min $dname | [/color][...]

should be:

if (![color:green]$isfile(%f)) { d_min $dname | [/color][...]


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Yes problem solved, thanks didn't mind the $isfile identifier

- You can delete this thread


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard