Hello,
When I try to press TAB in game to see what players are on it just crash.
Says it's wrong in HUD_TPSGame.cpp CGL.GetPlayer(i))
I applied DNC update 1 and update 2 but it still crashes and there is not any other HUD_TPSGame.cpp in the other updates.
Problem lays elsewhere?
Code:if(hudMain && !hudMain->isChatInputActive()) { bool showPlayerList = InputMappingMngr->wasPressed(r3dInputMappingMngr::KS_SHOW_PLAYERS); if(showPlayerList) { if (!hudMain->isPlayersListVisible()) { hudMain->clearPlayersList(); int index = 0; for(int i=0; i<R3D_ARRAYSIZE(CGL.playerNames); i++) { if(CGL.playerNames[i].Gamertag[0]) { // DNC r3d_assert(CGL.GetPlayer(i)); hudMain->addPlayerToList(index++, CGL.playerNames[i].Gamertag, CGL.GetPlayer(i)->CurLoadout.Stats.Reputation, CGL.playerNames[i].isLegend, CGL.playerNames[i].isDev, false, false); } } hudMain->showPlayersList(1); r3dMouse::Show(); } else { hudMain->showPlayersList(0); r3dMouse::Hide(); } } if(hudMain->isPlayersListVisible() && Keyboard->WasPressed(kbsEsc)) { hudMain->showPlayersList(0); r3dMouse::Hide(); } }


Reply With Quote

