Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> time format as 5:30 instead of 05:30
inhahe
post Oct 7 2007, 10:50 PM
Post #1


Newbie
*

Group: Members
Posts: 1
Joined: 7-October 07
Member No.: 390



it would be nice if there were a way to display the length of the song (and the time in the song you're currently at) without a leading 0 in the minutes part, if there isn't such a way. for example 5:30m instead of 05:30m. i looked through the variables list and couldn't find one.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Oct 8 2007, 08:32 AM
Post #2


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Read what functions help says:
$pad(expr,n)
Pads the result of expr with n digits, for instance, $pad(%min,0) where %min is 01 gives 1
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Slim
post Oct 28 2007, 05:53 AM
Post #3


Newbie
*

Group: Members
Posts: 1
Joined: 28-October 07
Member No.: 412



What the parameter I have to use in mIRC Script? I've read the manual but didn't find it.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Oct 28 2007, 12:32 PM
Post #4


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



$pad(%min,0):%sec~m

And you should use it not in the mIRC script, but in AMIP preset.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: