mIRC Home    About    Download    Register    News    Help

Print Thread
calculating in a $did #4257 31/12/02 06:36 PM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
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?

Re: calculating in a $did #4258 31/12/02 06:53 PM
Joined: Dec 2002
Posts: 144
D
Dana Offline
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
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
Re: calculating in a $did #4259 31/12/02 06:58 PM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
yes it is a dialog event

its the spot it enters into a variable

Re: calculating in a $did #4260 31/12/02 07:06 PM
Joined: Dec 2002
Posts: 144
D
Dana Offline
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
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
Re: calculating in a $did #4261 31/12/02 07:16 PM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
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.

Last edited by PHMinistries; 31/12/02 07:18 PM.
Re: calculating in a $did #4262 31/12/02 07:56 PM
Joined: Dec 2002
Posts: 144
D
Dana Offline
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
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