use mines it works i have a router and its works fine with the one i have.dumper wrote:this one doesnt work at allCode: Select all
case DEF_NOTIFY_SERVERCHANGE: memcpy(cp, m_pClientList[iToH]->m_cMapName, 10); cp += 10; if (m_iGameServerMode == 1) { if (memcmp(m_cGameServerAddr, m_cGameServerAddrExternal, 15) == 0); } if (m_iGameServerMode == 2) { if (memcmp(m_cGameServerAddr, m_cGameServerAddr, 15) == 0); } memcpy(cp, m_cLogServerAddr, 15); cp += 15; ip = (int *)cp; *ip = m_iLogServerPort; cp += 4; iRet = m_pClientList[iToH]->m_pXSock->iSendMsg(cData, 16 +19); break;
aslo dax wtf is wroung with mines if u look at
Code: Select all
case MSGID_REQUEST_REGISTERGAMESERVER:
wsprintf(cTxt, "(!) Try to register game server(%s) - GateServer", m_cServerName);
PutLogList(cTxt);
dwp = (DWORD *)(cData + DEF_INDEX4_MSGID);
*dwp = MSGID_REQUEST_REGISTERGAMESERVER;
wp = (WORD *)(cData + DEF_INDEX2_MSGTYPE);
*wp = DEF_MSGTYPE_CONFIRM;
cp = (char *)(cData + DEF_INDEX2_MSGTYPE + 2);
memcpy(cAccountName, m_cServerName, 10);
if (m_iGameServerMode == 1)
{
memcpy(cAddress, m_cGameServerAddrInternal, strlen(m_cGameServerAddrInternal));
}
if (m_iGameServerMode == 2)
{
memcpy(cAddress, m_cGameServerAddr, strlen(m_cGameServerAddr));
}
memcpy(cp, cAccountName, 10);
cp += 10;
memcpy(cp, cAddress, 16);
cp += 16;
wp = (WORD *)cp;
*wp = m_iGameServerPort;
cp += 2;
*cp = m_iTotalMaps;
cp++;
for (i = 0; i < m_iTotalMaps; i++) {
memcpy(cp, m_pMapList[i]->m_cName, 11);
cp += 11;
}
dwp = (DWORD *)cp;
*dwp = (DWORD)GetCurrentProcessId();
cp += 4;
dwp = (DWORD *)cp;
*dwp = DEF_BUILDDATE;
iRet = m_pGateSock->iSendMsg(cData, 43 + m_iTotalMaps*11);
break;
Code: Select all
case DEF_NOTIFY_SERVERCHANGE:
memcpy(cp, m_pClientList[iToH]->m_cMapName, 10);
cp += 10;
if (m_iGameServerMode == 1) {
if (memcmp(m_cGameServerAddrExternal, m_cGameServerAddrExternal, 15) == 0); }
if (m_iGameServerMode == 2) {
if (memcmp(m_cGameServerAddr, m_cGameServerAddr, 15) == 0); }
memcpy(cp, m_cLogServerAddr, 15);
cp += 15;
ip = (int *)cp;
*ip = m_iLogServerPort;
cp += 4;
iRet = m_pClientList[iToH]->m_pXSock->iSendMsg(cData, 16 +19);
break;