mIRC Home    About    Download    Register    News    Help

Topic Options
#4257 - 31/12/02 06:36 PM calculating in a $did
PHMinistries Offline
Vogon poet

Registered: 09/12/02
Posts: 174
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?

Top
#4258 - 31/12/02 06:53 PM Re: calculating in a $did
Dana Offline
Vogon poet

Registered: 08/12/02
Posts: 144
Loc: Montreal, Canada
Is this in an On DIALOG event? If not, you have to specify the dialog name in the $did.

Dana
_________________________
"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke

Top
#4259 - 31/12/02 06:58 PM Re: calculating in a $did
PHMinistries Offline
Vogon poet

Registered: 09/12/02
Posts: 174
yes it is a dialog event

its the spot it enters into a variable

Top
#4260 - 31/12/02 07:06 PM Re: calculating in a $did
Dana Offline
Vogon poet

Registered: 08/12/02
Posts: 144
Loc: Montreal, Canada
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)
_________________________
"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke

Top
#4261 - 31/12/02 07:16 PM Re: calculating in a $did
PHMinistries Offline
Vogon poet

Registered: 09/12/02
Posts: 174
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.


Edited by PHMinistries (31/12/02 07:18 PM)

Top
#4262 - 31/12/02 07:56 PM Re: calculating in a $did
Dana Offline
Vogon poet

Registered: 08/12/02
Posts: 144
Loc: Montreal, Canada
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.
_________________________
"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke

Top