|
poploco Beginner
Joined: 14 Oct 2003 Posts: 18 Location: Canada
|
Posted: Wed Mar 06, 2013 7:51 pm
Auto "logging" (as in text log) help needed. |
Hello,
I am trying to get the #log command to turn on as I connect to certain chars. I know I can type #log march06.txt and it will log all info to that file. But is there a way to do it so the log automatically turns on and adds the date of the day without me typing it? I tried #log (%date).txt but it will not work. All it does is write exactly (%date).txt as a filename... and not the date. I tried all 3 types of brackets... []{}() but they keep doing the same thing. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Mar 06, 2013 8:53 pm |
%date has no meaning in CMud, which is why it did that. Can't really just make up commands and functions because the names make sense to you .
You want to use %time(). Will also want to put this in an event like onConnect if you want to have it start automatically. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
poploco Beginner
Joined: 14 Oct 2003 Posts: 18 Location: Canada
|
Posted: Wed Mar 06, 2013 10:17 pm |
works thanks!
|
|
|
|
|
|