quote:
Originally posted by bigbob85
Jesus, what is a case when kOMPlEXXs script wont work?
Works for me. Dosnt work for a chat only name... yet...
quote:
Originally posted on the StuffPlug 3 forums
TimeStamp format as follows:
H = 24 Hour
HH = 24 Hour with leading zero
h = 12 Hour
hh = 12 Hour with leading zero
m = Minutes
mm = Minutes with leading zero
s = Seconds
ss = Seconds with leading zero
t = A/P
tt = AM/PM
Now, say szTimeStamp = "[H:mm]", which has a length of 6.
In this timestamp, H can be any number from 0 to 23 and mm can be any number from 00 to 59.
As long as it's before 10am, H will be replaced with 1 character, eg [9:55], with a length of 6. However, 10 minutes later, it will be [10:05], with a length of 7.
As a result, using this method could get you an extra space before the nickname, or even the last few characters of the timestamp.
The method I used first checks whether timestamps are enabled, and if they are, it counts the amount of spaces in the szTimeStamp registry value and removes the amount of spaces plus one space-separated character blocks from the beginning of the string. Spaces don't get replaced by stuffplug and there's always a space between the timestamp and the nickname. If timestamps are disabled or empty, it returns the string you put in.