mIRC Homepage
Posted By: Kurdish_Assass1n variable help - 15/09/06 09:40 PM
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!
Posted By: xDaeMoN Re: variable help - 15/09/06 10:34 PM
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()
Posted By: SCNDRL Re: variable help - 15/09/06 10:35 PM
https://forums.mirc.com/s...p;page=7#165375
Posted By: RusselB Re: variable help - 15/09/06 10:36 PM
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.
Posted By: Kurdish_Assass1n Re: variable help - 15/09/06 10:44 PM
ok guys, worked, thanks.
Posted By: xDaeMoN Re: variable help - 15/09/06 10:50 PM
Welcome.
Posted By: RusselB Re: variable help - 15/09/06 11:07 PM
Looks like the three of us were giving the same information at the same time. I guess great minds do think alike . grin
© mIRC Discussion Forums