mIRC Home    About    Download    Register    News    Help

Print Thread
$exists apparently can not be passed local %var #146332 03/04/06 06:36 AM
Joined: Mar 2006
Posts: 22
R
rehinged Offline OP
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

Re: $exists apparently can not be passed local %var #146333 03/04/06 11:42 AM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
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

Re: $exists apparently can not be passed local %var #146334 03/04/06 07:54 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
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.

Re: $exists apparently can not be passed local %var #146335 04/04/06 05:15 AM
Joined: Dec 2002
Posts: 122
S
STING Offline
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

Re: $exists apparently can not be passed local %var #146336 04/04/06 05:39 AM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
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.
Re: $exists apparently can not be passed local %var #146337 04/04/06 07:16 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
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.

Re: $exists apparently can not be passed local %var #146338 04/04/06 07:58 AM
Joined: Dec 2002
Posts: 122
S
STING Offline
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.