13.06.2015, 16:16
PHP код:
forward SyncTime();
public SyncTime()
{
new string[64];
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
}
use this line
PHP код:
if(!realtime)
{
SetWorldTime(wtime);
gTime = wtime;
}
if (realtime)
{
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
SetWorldTime(tmphour);
gTime = tmphour;
}
if(!realtime)
{
SetWorldTime(wtime);
gTime = wtime;
}
task SyncUp
put this line
PHP код:
SyncTime();