mIRC Home    About    Download    Register    News    Help

Print Thread
#226738 13/10/10 05:53 PM
Joined: Sep 2010
Posts: 6
M
Malokai Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Sep 2010
Posts: 6
Ok I'm aware that there are several ways of defining a Timer:

/Timer - Which allocates the next available timer number
/Timer 1 - Which specifies the timer number
/TimerTest - Which specifies a name for the timer.

My question is, is there any way of defining a timer NAME based on a variable? For example: /Timer%ServerName 1 30 TestServer

In this example, say %ServerName was TEST, it would create a timer the same as if I'd typed: /TimerTEST 1 30 TestServer

Malokai #226739 13/10/10 06:32 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
/Timer 1 is invalid for setting the name to 1... it would be /Timer1.

As to your question, use /timer $+ $var


Invision Support
#Invision on irc.irchighway.net
Riamus2 #226759 14/10/10 12:29 PM
Joined: Sep 2010
Posts: 6
M
Malokai Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Sep 2010
Posts: 6
Thanks for your help Riamus2, I must have been having a blonde moment, of course it would be Timer $+ $Var lol

Malokai #226807 15/10/10 11:52 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
As a note for you or anyone else reading this... I meant %var, not $var. Oops. wink

You could use $something if it's an identifier, of course... but as far as variables go, it would be %. Typo on my part.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard