Guest User

Untitled

a guest
Aug 6th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. forward time();
  2. public time()
  3.  
  4. {
  5.         new string[256], day, month, year, hours, minutes, seconds;
  6.         getdate(day, month, year), gettime(hours, minutes, seconds);
  7.         format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
  8.         TextDrawSetString(Textdraw5, string);
  9.         format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
  10.         TextDrawSetString(Textdraw3, string);
Advertisement
Add Comment
Please, Sign In to add comment