Display date? (split from "date system thingy" thread)

Started by Edwin Xie, Sun 27/06/2004 23:32:34

Previous topic - Next topic

Edwin Xie

Umm, I have a related question. I want the player to see the time. How do I do that?
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

LordHart

Um, most likely by using the GetTime function from the manual... :P

Scorpiorus

Yeah, use GetTime to get the current time and then convert it into a string and display on a GUI label:

repeatedly_execute:

int hour = GetTime (1);
int minute = GetTime (2);
int second = GetTime (3);

string time;

StrFormat(time, "Time: %d:%d:%d", hour, minute, second);

SetLabelText(GUI, LABEL, time);

SMF spam blocked by CleanTalk