Real Time problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Real Time problem (
/showthread.php?tid=557338)
Real Time problem -
ZaBraNjeNi - 13.01.2015
Hi,
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 );
}
Thanks.
Re: Real Time problem -
Threshold - 13.01.2015
So add 6 to the hours?
Re: Real Time problem -
ZaBraNjeNi - 13.01.2015
Fixed.
Thanks.