13.01.2015, 17:05
Hi,
I have problem with "Real Time", well he delayed 6 hours, minutes and seconds are ok, but problem are Hours.
Thanks.
I have problem with "Real Time", well he delayed 6 hours, minutes and seconds are ok, but problem are Hours.
Код:
new g_h, g_m, g_s; gettime(g_h, g_m, g_s);
Код:
format(string, 128, "%02d:%02d:%02d", g_h, g_m, g_s); TextDrawSetString(Textdraw3, string);
Код:
stock g_hour( g_char[ ], bool:g_Sec = false ) { new g_s_hour[ 50 char ], g_d_hour[ 3 ] ; if( !g_Sec ) { gettime( g_d_hour[ 0 ], g_d_hour[ 1 ] ); format( g_s_hour, sizeof g_s_hour, "%02d%s%02d", g_d_hour[ 0 ], g_char, g_d_hour[ 1 ] ); } else { gettime( g_d_hour[ 0 ], g_d_hour[ 1 ], g_d_hour[ 2 ] ); format( g_s_hour, sizeof g_s_hour, "%02d%s%02d%s%02d", g_d_hour[ 0 ], g_char, g_d_hour[ 1 ], g_char, g_d_hour[ 2 ] ); } return ( g_s_hour ); }