Gamestudio Links
Zorro Links
Newest Posts
No connection to MT4
by JeyKey II. 11/22/26 10:49
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, LucasJoshua, JeyKey II), 43,701 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
time function #300483
12/02/09 18:07
12/02/09 18:07
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
i need a function that shows on the screen the advance of seconds and minutes.

Does somebody has it?

thanks, friends.

Re: time function [Re: Erick_Castro] #300487
12/02/09 18:30
12/02/09 18:30
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline
Serious User
Liamissimo  Offline
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
You mean something that sows the time? Example:
Code:
var seconds;
function timeeverysecond()
{
  while(1)
  {
    seconds += 1;
    wait(-1);
  }
}



And then a Panel with the digits code:
Code:
digits(pos_x,pos_y,0,*,10,seconds);




"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: time function [Re: Liamissimo] #300496
12/02/09 19:14
12/02/09 19:14
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
For minutes and seconds, better take this code:
Code:
var seconds_passed = 0;
var seconds, minutes;
function timeeverysecond()
{
  while(1)
  {
    seconds_passed += 1;
    
    seconds = seconds_passed % 60;
    minutes = integer(seconds_passed/60);
    wait(-1);
  }
}



Re: time function [Re: Liamissimo] #300497
12/02/09 19:23
12/02/09 19:23
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
thank you, friend.

Re: time function [Re: Erick_Castro] #300545
12/03/09 06:59
12/03/09 06:59
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
thanks, Lucas.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1