mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2006
Posts: 22
R
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Mar 2006
Posts: 22
DID NOT WORK:
var %map.draw.trying = $scriptdirglobalgfx\ $+ $3
e $exists( %map.draw.trying )
WORKED:
%map.draw.trying = $scriptdirglobalgfx\ $+ $3
e $exists( %map.draw.trying )
NOTE:
The presence of /var is the ONLY thing that changed, for the offending routine to be successful. The given lines appeared exactly as I've shown you.

PS:
I just remembered that I also tried $isfile and $isdir through this trial, and neither did they return my results until I created a global variable rather than local... enlighten me smile

mIRC 6.17, win2k

Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Worked
on *:TEXT:test1 test2 test.txt:#: {
var %map.draw.trying = $scriptdirglobalgfx\ $+ $3
echo -a $exists(%map.draw.trying) <--
}
[06:38] <@mIRCManiac> ed say test1 test2 test.txt
[06:38] <@E|wood> test1 test2 test.txt
$true <--

Worked
on *:TEXT:test1 test2 test.txt:#: {
%map.draw.trying = $scriptdirglobalgfx\ $+ $3
echo -a $exists(%map.draw.trying) <--
}
[06:39] <@mIRCManiac> ed say test1 test2 test.txt
[06:39] <@E|wood> test1 test2 test.txt
$true <--

v6.17 WinXP Pro SP2

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
male var into !var see if that makes a difference, you might have a custom var alias? Becuase it worked fine for me.

Joined: Dec 2002
Posts: 122
S
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 122
Besides $exists, you are also using decrapated syntaxing:
$scriptdirglobalgfx\ $+ $3

should be:

$scriptdir $+ globalgfx\ $+ $3

If this solves your problem I don't know

Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Doesn't make any difference, as $*dir identifiers allow for strings to be appended to it. Although it is supposedly depreciated usage, I don't see it changing any time soon wink


Gone.
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
I saw in another thread hes had this problem with a bunch of things, someone else (mircmanic or querty i think) also pointed out he likely just has a VAR alias, thats screwing things up.

Joined: Dec 2002
Posts: 122
S
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 122
Adding to Dave's post, maybe you indeed have a custom var alias. You can check this with //echo -a $isalias(var)
It will return $true if you have a custom var alias.


Link Copied to Clipboard