mIRC Home    About    Download    Register    News    Help

Print Thread
#139288 13/01/06 06:48 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
have a small problem with this one.

set %var $eval(Pager is disabled for now $nick $+ .)

it set the text as it should, but it wont add the $nick part. i need it to store $nick in the %var.. someone got an idea ? :tongue:

---------EDIT-------------------

the %var maybe changed so $nick or anything else can appear anywhere in text.

Last edited by sparta; 13/01/06 06:52 AM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#139289 13/01/06 06:56 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
works fine for me
i assume you have it in an event so that $nick actually returns something?

#139290 13/01/06 07:02 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Using $eval like you did is pointless, as not specifying the level of evaluation makes it default to level 1, which is the normal level when you execute a command from the command line with double // or from a script.

//var %a = $me

is the same as

//var %a = $eval($me)

Frankly, what you're asking makes no sense, if you do:

//set %var blabla $nick blabla

and you use this command in an event where $nick returns a value, fex it is 'sparta', then it wil set the var to "blabla sparta blabla".

You are probably doing something wrong again, but we cant help further unless you specify what exactly you are doing in what event, as in showing the exact code.


Gone.
#139291 13/01/06 07:07 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
what i was looking for was:

$eval(Pager is disabled for now $nick $+ .,0)

that did the trick.. smile thnx anyway..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#139292 13/01/06 07:09 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
then why didnt u say you didnt want $nick evaluated

you must having a off night brother

#139293 13/01/06 07:14 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Quote:

it set the text as it should, but it wont add the $nick part.

i did say what part it didnt add, and since i wanted help to get that part added to the %var smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#139294 13/01/06 07:40 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
i guess
so long as your sorted out

#139295 13/01/06 07:57 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Well, you certainly didn't explain yourself well then, because if I knew that's what you were asking I would have told you to do this:

//set %var blabla $!nick blabla

That does the same as the $eval with level 0 does.

//set %var $!nick $!+ .

or

//set %var $($nick $+,) .

(You don't need to specify the 0)

All you needed to say was: I don't want $nick to evaluate. and everyone would have understood smile


Gone.
#139296 13/01/06 08:08 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
so you didn't want what you asked for
what you wanted was
set %var test setting an identifier$!nick
//say %var
or $+($,nick)
or $eval($nick,0)

try this
//echo -a $eval($me,0) $+($,me) $!me $me

#139297 13/01/06 08:13 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Ok, a bit tired.. :tongue: anyway.. i dont even know if this is possible in a "easy" way, if you have two server connections open, then if somone /msg you on the first server/network you connected too, then the query ends up beside the channels that are open on tthat server.. then the next status windows come, and the channel on that server/network, any way to move the querys on the first connection to the end of the "line" status-window channel1 channel2 status-window2 channel1 channel2 querys-here ? hope you understand me? wink


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard