mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2004
Posts: 7
P
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Sep 2004
Posts: 7
I'm tryin to make a timer that will generate a random colour each time. Most things I tried got me $rand(1,15).
The only two that did something where (//timer 0 1 msg #  $+ [ [ $!rand(1,15) ] ] test ) that chose a colour but stayed the same and the other one was ( //timer 0 1 msg #  $!rand(1,15) test ) that re-evaluates $rand but since there is a blanc wont put a colour.
If anyone knows how exactly to do it I'd apreciate it.
Tnx

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
//timer 0 1 msg # $!+(,$rand(1,15),test)
Another way to write that would be:
//timer 0 1 msg #  $!+ $!rand(1,15) $!+ test


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Sep 2004
Posts: 7
P
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Sep 2004
Posts: 7
Thankes for the help.
Spelling mistakes( you mean not puttin the g on some verbs? I prefer it like that. )
grammatical errors ( Yeah I need some sleep. )
stupid comments ( I'll make sure that next time I won't put any comments. )
Gnight and tnx for the help again smile

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The line 'Spelling mistakes, grammatical errors, and stupid comments are intentional.' is just my signature, it appears at the bottom of all my posts, it wasn't a comment about your post wink.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Sep 2004
Posts: 7
P
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Sep 2004
Posts: 7
lol
I was just gonna edit the post when I checked my e-mail and it wasn't there. Strange most of the time there is a line to show that it is signature. Tnx again. Gonna get some sleep cause I really need it.


Link Copied to Clipboard