mIRC Home    About    Download    Register    News    Help

Print Thread
N
narkaT
narkaT
N
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

S
Sigh
Sigh
S
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

N
narkaT
narkaT
N
thanks wink


Link Copied to Clipboard