caspa Posted March 9, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share Posted March 9, 2013 (edited) how to create a waitingroom that display the server time[ Clock : 03:29 49s PM ] -- i wan't the seconds to be running... like[ Clock : 03:29 50s PM ][ Clock : 03:29 51s PM ] [ Clock : 03:29 52s PM ] [ Clock : 03:29 53s PM ] [ Clock : 03:29 54s PM ] [ Clock : 03:29 55s PM ] [ Clock : 03:29 56s PM ] [ Clock : 03:29 57s PM ] [ Clock : 03:29 58s PM ] [ Clock : 03:29 59s PM ] [ Clock : 03:30 00s PM ] Edited March 9, 2013 by caspa Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 9, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 9, 2013 prontera,155,181,5 script Sample 1002,{ end; OnInit: while( 1 ){ delwaitingroom; waitingroom " "+gettimestr( "%H:%M:%S %p",21 ),0; sleep 1000; } end; } refer Gettimestr 2 Quote Link to comment Share on other sites More sharing options...
WhatFT Posted March 9, 2013 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Share Posted March 9, 2013 prontera,149,194,5 script Server Time(+8GMT) 837,{ end; OnInit: while(1) { set .@hour,gettime(3); set .@minute,gettime(2); delwaitingroom; waitingroom "Clock "+(.@hour > 12?""+(.@hour-12)+":"+(.@minute >= 10?""+.@minute+"":"0"+.@minute+"")+" PM":""+.@hour+":"+(.@minute >= 10?""+.@minute+"":"0"+.@minute+"")+" AM")+"",0; sleep 59000; } } Quote Link to comment Share on other sites More sharing options...
caspa Posted March 9, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share Posted March 9, 2013 i tried urs but its not showing any seconds..... if possible i would like a real clock waitingroom... Quote Link to comment Share on other sites More sharing options...
mrlongshen Posted March 9, 2013 Group: Members Topic Count: 98 Topics Per Day: 0.02 Content Count: 1302 Reputation: 79 Joined: 12/04/12 Last Seen: September 26, 2019 Share Posted March 9, 2013 prontera,149,194,5 script Server Time(+8GMT) 837,{ end; OnInit: while(1) { set .@hour,gettime(3); set .@minute,gettime(2); delwaitingroom; waitingroom "Clock "+(.@hour > 12?""+(.@hour-12)+":"+(.@minute >= 10?""+.@minute+"":"0"+.@minute+"")+" PM":""+.@hour+":"+(.@minute >= 10?""+.@minute+"":"0"+.@minute+"")+" AM")+"",0; sleep 59000; } } its work but like the topic owner request.. the second is not running Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 9, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted March 9, 2013 prontera,149,194,5 script Server Time(+8GMT) 837,{ end; OnInit: while(1) { set .@h, gettime(3); set .@m, gettime(2); set .@s, gettime(1); delwaitingroom; waitingroom "Clock: "+ ( .@h > 12 ? .@h -12 : .@h ) +":"+ ( .@m >= 10 ? .@m : "0"+ .@m ) +" "+ ( .@s >= 10 ? .@s : "0"+ .@s ) +" "+ ( .@h > 12 ? "PM" : "AM" ),0; sleep 998; } } 1 Quote Link to comment Share on other sites More sharing options...
caspa Posted March 9, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share Posted March 9, 2013 yes.... that's what i'm talking about.... Thank you.. capuche [solved] Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 9, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted March 9, 2013 O_o gettimestr is a better solution Thanks for reminds me Quote Link to comment Share on other sites More sharing options...
Question
caspa
how to create a waitingroom that display the server time
[ Clock : 03:29 49s PM ] -- i wan't the seconds to be running... like
[ Clock : 03:29 50s PM ]
[ Clock : 03:29 51s PM ]
[ Clock : 03:29 52s PM ]
[ Clock : 03:29 53s PM ]
[ Clock : 03:29 54s PM ]
[ Clock : 03:29 55s PM ]
[ Clock : 03:29 56s PM ]
[ Clock : 03:29 57s PM ]
[ Clock : 03:29 58s PM ]
[ Clock : 03:29 59s PM ]
[ Clock : 03:30 00s PM ]

Edited by caspaLink to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.