04-05-2022, 09:48 PM
CurrentTime ServerNum ChannelNum SerialNumber (increases everytime by 1 till 9999 and then resets to 0000)
1648570643 01 02 7405
std:
tring GetSerial(){
static int serial = 0;
int nowtime = (int)time(0);
std:
tring str = boost:
tr(boost::format("%d%02d%02d%04d") % nowtime % gserver->m_serverno % gserver->m_subno % serial);++serial;
if (serial > 9999)
{
serial = 0;
}
return str;
}

