|
|
Joined: Dec 2008
Posts: 1,515
Hoopy frood
|
OP
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!
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
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 var %f = $qt($scriptdirinfo.txt) then try your script again.
|
|
|
|
Joined: Dec 2008
Posts: 1,515
Hoopy frood
|
OP
Hoopy frood
Joined: Dec 2008
Posts: 1,515 |
Well i tryied but same result was returned (0)
The issue is still exist
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
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
Hoopy frood
|
OP
Hoopy frood
Joined: Dec 2008
Posts: 1,515 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
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
Hoopy frood
|
OP
Hoopy frood
Joined: Dec 2008
Posts: 1,515 |
Yes problem solved, thanks didn't mind the $isfile identifier
- You can delete this thread
|
|
|
|
|
|