GM3

Posts : 10 Since : 2013-08-20
![[CODE] No recall- Esperar 10 secs Empty](https://2img.net/i/empty.gif) | Subject: [CODE] No recall- Esperar 10 secs 8/20/2013, 6:50 pm | |
| Buscar en Game.cpp del "HGServer": - Code:
-
case DEF_MAGICTYPE_TELEPORT: m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwnerH, &cOwnerType, dX, dY); switch (m_pMagicConfigList[sType]->m_sValue4) { case 1: if ( (cOwnerType == DEF_OWNERTYPE_PLAYER) && (sOwnerH == iClientH) ) { RequestTeleportHandler(iClientH, "1 "); } break; } break; Y remplazar por el siguiente caso: - Code:
-
case DEF_MAGICTYPE_TELEPORT: m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwnerH, &cOwnerType, dX, dY); switch (m_pMagicConfigList[sType]->m_sValue4) { case 1: if ( (cOwnerType == DEF_OWNERTYPE_PLAYER) && (sOwnerH == iClientH) ) { if ((dwTime - m_pClientList[iClientH]->m_dwLogoutHackCheck) > 10000) { RequestTeleportHandler(iClientH, "1 "); }else{ char cCannotRecall[256]; wsprintf(cCannotRecall,"Quieres recallear? Espera 10 segundos."); ShowClientMsg(iClientH, cCannotRecall); goto MAGIC_NOEFFECT; } } break; } break; | |
|
hector123

Posts : 1 Since : 2016-05-06
![[CODE] No recall- Esperar 10 secs Empty](https://2img.net/i/empty.gif) | Subject: Re: [CODE] No recall- Esperar 10 secs 5/26/2016, 12:27 pm | |
| Por que que da este error?? Compiling... game.cpp C:\Users\Josue\Desktop\jeancarlos}\HB-Quisqueya\GameServers\sources\[SRC]HG\game.cpp(24962) : error C2039: 'm_dwLogoutHackCheck' : is not a member of 'CClient' c:\users\josue\desktop\jeancarlos}\hb-quisqueya\gameservers\sources\[src]hg\client.h(52) : see declaration of 'CClient' C:\Users\Josue\Desktop\jeancarlos}\HB-Quisqueya\GameServers\sources\[SRC]HG\game.cpp(65536) : warning C4049: compiler limit : terminating line number emission Error executing cl.exe.
game.exe - 1 error(s), 1 warning(s) | |
|
EnglishGM

Posts : 2 Since : 2016-05-13
![[CODE] No recall- Esperar 10 secs Empty](https://2img.net/i/empty.gif) | Subject: Re: [CODE] No recall- Esperar 10 secs 5/28/2016, 2:38 pm | |
| hecor123, You need to declare the DWORD variable. Find for m_iEnemyKillCount = 0; in CClient::CClient(HWND hWnd) - Code:
-
Add m_dwLogoutHackCheck = 0; Go to Client.h - Code:
-
Add DWORD m_dwLogoutHackCheck; Your mistake for warning C4049 is because VS6.0 have reach a limit of compiling at the line of 65536. You need to Have a Game2.cpp and defines Game.h inside the Game2.cpp so any functions you have inside Game2.cpp will read the declared variables. Good . | |
|