mIRC Homepage

calculating in a $did

Posted By: PHMinistries

calculating in a $did - 31/12/02 06:36 PM

set %autoidleaway $calc($did(6) * 60)

thats what i tried and it wouldnt calculate it

i have the set %autoidleaway $did(6)

and that works fine
and what im trying to do is having it times it self by 60 cause its all in secondsd and id like it in minutes

how would i do that?
Posted By: Dana

Re: calculating in a $did - 31/12/02 06:53 PM

Is this in an On DIALOG event? If not, you have to specify the dialog name in the $did.

Dana
Posted By: PHMinistries

Re: calculating in a $did - 31/12/02 06:58 PM

yes it is a dialog event

its the spot it enters into a variable
Posted By: Dana

Re: calculating in a $did - 31/12/02 07:06 PM

You say that "set %autoidleaway $did(6)" works.. then does the following work?

Code:
set %autoidleaway $did(6)
set %autoidleaway $calc(%autoidleaway * 60)
Or this?
Code:
set %autoidleaway $calc($($did(6),2) * 60)
Posted By: PHMinistries

Re: calculating in a $did - 31/12/02 07:16 PM

works perfectly thanks

i got confused with something at first but no it works great

you must be a programer,
lol some of this stuff looks easy once yo uread it but some times not.
Posted By: Dana

Re: calculating in a $did - 31/12/02 07:56 PM

Actually, I'm a sociology student .. about as far away from a programmer as you can get. wink

You're welcome and I'm glad it's working now.
© 2019 mIRC Discussion Forums