mIRC Home    About    Download    Register    News    Help

Print Thread
#159284 15/09/06 09:40 PM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
ok guys, need a little help, I have a variable that isn't returning anything.
Code:
%seen.nick
[color:red]should[/color] return this: 1hr 27mins 27secs ago., it's in variables, and, yes, it's set.

and, this is in one of my scripts:
Code:
did -ra $seen 6 $+(%seen.,$did($seen,1).seltext)
-----
$seen = seen.panel 6 = edit. and 1 = list :D

but, it only returns nick, any idea why, help is appreciated!


-Kurdish_Assass1n
#159285 15/09/06 10:34 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Change
Code:
 $+(%seen.,$did($seen,1).seltext) 

to
Code:
 $($+(%,seen.,$did($seen,1).seltext),2) 


You need to evaluate the variable. Notice the comma (,) between "%" & "seen.". It needs to be separated so when mIRC evaluates it, it evaluates the WHOLE combined variable, and not just %seen. which has no value & which is why NICK is only showing.

** $() is short for $eval()


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#159286 15/09/06 10:35 PM
Joined: Dec 2005
Posts: 58
S
Babel fish
Offline
Babel fish
S
Joined: Dec 2005
Posts: 58


i like that
#159287 15/09/06 10:36 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Try using
Code:
 did -ra $seen 6 $($+(%,seen.,$did($seen,1).seltext),2) 


Part of the problem (I think) is that you need to evaluate the variable %seen.<nick> in order to get it to return correctly for placement in the dialog.

#159288 15/09/06 10:44 PM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
ok guys, worked, thanks.


-Kurdish_Assass1n
#159289 15/09/06 10:50 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Welcome.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#159290 15/09/06 11:07 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Looks like the three of us were giving the same information at the same time. I guess great minds do think alike . grin


Link Copied to Clipboard