GM3
Silver
Earned after your first post and comment.
10th Anniversary
Earned after being a member for 10 years.
Likes : 5
| #1Subject: [CODE] No recall- Esperar 10 secs 8/20/2013, 9: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
Silver
Earned after your first post and comment.
Likes : 1
| #2Subject: Re: [CODE] No recall- Esperar 10 secs 5/26/2016, 3: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
Silver
Earned after your first post and comment.
Likes : 1
| #3Subject: Re: [CODE] No recall- Esperar 10 secs 5/28/2016, 5: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 . |
|
Sponsored content
| #4Subject: Re: [CODE] No recall- Esperar 10 secs | |
| |
|