[ New Updates · Members · Rules · Search · RSS ]
Page 1 of 11
Forum moderator: Nouris_Hamada_103 
Forum » DevCen (Developer Center) » AMS Studio » Coding Help » [ASK] How to make Countdown timer for a page? (cara buat timer di ams, masuuk)
[ASK] How to make Countdown timer for a page?
BujangDate: Wednesday, 10 Sep 2014, 6:35 PM | Message # 1
Active Member
Group: Member
Messages: 273
Awards: 0
Reputation: 11
Status: Offline
ane mau tanya cara buat countdown timer di ams.
Kalo pagenya dibuka, timer yang 2 jamnya berkurang.
kalo timernya habis, buttton nya jadi enable..


monggo dijawab gan grin2


life is a choice...
Facebook
Blog
 
yosiaDate: Wednesday, 10 Sep 2014, 10:18 PM | Message # 2
New Member
Group: Developer
Messages: 34
Awards: 0
Reputation: 204
Status: Offline
nih, tinggal ngasi jika jam=0 menit=0 dan detik=0 maka berhenti.
buru2 mau kemah soalnya pacman
taruh di timer , interval 1000



Code
if e_ID == 10 then
detik = Label.GetText("Detik");
menit = Label.GetText("Menit");
jam = Label.GetText("Jam");
detik = Label.GetText("Detik");
detik = String.ToNumber(detik);
if detik == 0 then
Label.SetText("Menit", menit-1);
Label.SetText("Detik", "60");
end
if menit == 0 then
jam = Label.GetText("Jam");
jam = String.ToNumber(jam);
Label.SetText("Jam", jam-1);
Label.SetText("Menit", "59");
end
detik = Label.GetText("Detik");
detik = String.ToNumber(detik);
Label.SetText("Detik", detik-1);
end
 
BujangDate: Thursday, 11 Sep 2014, 3:59 PM | Message # 3
Active Member
Group: Member
Messages: 273
Awards: 0
Reputation: 11
Status: Offline
gak ngudeng ane ama kodenya gan. ane dah pasang di timer, udah set label nya juga.
tapi masih blom bisa jalan timernya


life is a choice...
Facebook
Blog
 
yosiaDate: Saturday, 13 Sep 2014, 9:59 PM | Message # 4
New Member
Group: Developer
Messages: 34
Awards: 0
Reputation: 204
Status: Offline
UPDATED pinguin

Available to users only
 
joe_chrisnaDate: Tuesday, 21 Oct 2014, 4:38 PM | Message # 5
New Member
Group: Member
Messages: 6
Awards: 0
Reputation: 0
Status: Offline
Quote yosia ()
Download CountDown.apz
taro dimana ni ?
 
yosiaDate: Saturday, 08 Nov 2014, 6:16 AM | Message # 6
New Member
Group: Developer
Messages: 34
Awards: 0
Reputation: 204
Status: Offline
Quote joe_chrisna ()
taro dimana ni ?
kalo udah punya AMS tinggal open.
 
BujangDate: Wednesday, 24 Dec 2014, 1:40 AM | Message # 7
Active Member
Group: Member
Messages: 273
Awards: 0
Reputation: 11
Status: Offline
Quote yosia ()
New Member

Group: Developer
Messages: 31
Awards: 0
Reputation: 204  ±
Reproofs: 0%
Status: Offline
UPDATED
Download CountDown.apz
thanks gan, ane coba


life is a choice...
Facebook
Blog
 
Forum » DevCen (Developer Center) » AMS Studio » Coding Help » [ASK] How to make Countdown timer for a page? (cara buat timer di ams, masuuk)
Page 1 of 11
Search:

Create a free website with uCoz