mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 4
N
narkaT Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: Jan 2004
Posts: 4
i*ve got al litte prob wink

i have a var wich content is "13is7 idle for $ $+ duration(<idle>) singed $ $+ duration($ $+ calc($ $+ ctime - <signon>)) ago"

<idle> and <signon> are replaced later and the content looks like this "is idle for $duration(23312) singed $duration($calc($ctime - 1092754201)) ago"

now the identifiers should do there job but i don't know how i get them doing it because they are in the var :x


_Òó_

Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
Evaluate that variable one more time, so that its contents are also evaluated. This can be accomplished with the $eval() identifier, $eval(string,N) - it evaluates the string N times.

So if a variable %var contains $me just like that, using $eval(%var,1) merely evaluates it once to produce $me. If you want your own nickname shown you have to evaluate it an extra time with $eval(%var,2) which is exactly what you want to use in this case

Bear in mind you can also store the identifiers in your variable as $!duration() which evaluates once to produce $duration(). The $() identifier works in the same way as $eval() in case you're interested in shortening your code those 4 bytes

Joined: Jan 2004
Posts: 4
N
narkaT Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: Jan 2004
Posts: 4
thanks wink


_Òó_


Link Copied to Clipboard