mIRC Homepage
Posted By: Adriano away, problem to show reason - 14/05/04 09:04 PM
hello, i dont know what's wrong with this code, but not show reason when i leave room"away" when i turn back i see reason but when i leave not. any idea

thanks in advance.

menu channel {
-
$iif($away,$style(1)) Away
.$iif($away,Set Back,Set Away):{ if ($away) { ame is back from:  $+ $awaymsg $+ . I was gone for:  $+ $duration($awaytime) $+  | away } | else { away $$input(Enter reason,129,Set Away) | ame is leaving. reason:  $+ $awaymsg $+  } }
}
Posted By: Wolfie Re: away, problem to show reason - 14/05/04 09:32 PM
Code:
menu channel {
  -
  $iif($away,$style(1)) Away
  .$iif($away,Set Back,Set Away):{ if ($away) { ame is back from:  $+ $awaymsg $+ . I was gone for:  $+ $duration($awaytime) $+  | away } | else { away $$input(Enter reason,129,Set Away) | .timer 1 0  ame is leaving. Reason: $!(,$!awaymsg,) } }
}

Try that.
Posted By: Adriano Re: away, problem to show reason - 14/05/04 10:27 PM
not work frown
Posted By: Iori Re: away, problem to show reason - 14/05/04 11:29 PM
Code:
.Set $iif($away,Back,Away):if ($away) { ame is back from: $+(,$awaymsg,. I was gone for: ,$duration($awaytime),) | away } | else { away $$input(Enter reason,129,Set Away) | ame is leaving. reason: $+(,[color:red]$![/color],) }
Posted By: Adriano Re: away, problem to show reason - 15/05/04 12:12 AM
$me is leaving. reason: Iori rocks

well done Iori work now, thanks man
Posted By: Wolfie Re: away, problem to show reason - 15/05/04 12:15 AM
When I tried that snippet that I pasted for you to try, it worked for me.

And you have to make sure to include the ! marks where I placed them.
Posted By: Adriano Re: away, problem to show reason - 15/05/04 05:52 AM
wolfire, maybe.
thanks for your effort, appreciated much
© mIRC Discussion Forums