-
Proficient Member
Help crash players in gunz 1.5 exploit not fixed :\
Crash are the players of my game, use the national source gunz, and I already fix the 27 errors that Solaire posted, but the crash of the players is not working, still getting, could you help me?
code:
case MC_MATCH_REGISTERAGENT:
{
char szIP[128];
int nTCPPort, nUDPPort;
if (pCommand->GetParameter(&szIP, 0, MPT_STR, sizeof(szIP) ) == false) break;
if (pCommand->GetParameter(&nTCPPort, 1, MPT_INT) == false) break;
if (pCommand->GetParameter(&nUDPPort, 2, MPT_INT) == false) break;
// Not the best way to patch, but working for now
if (strstr(szIP, "%")) {
break;
}
OnRegisterAgent(pCommand->GetSenderUID(), szIP, nTCPPort, nUDPPort);
}
-