Error 1 error C2065: 'gPostBoxesMngr' : undeclared identifier
Code:bool ServerGameLogic::CheckForPlayersAround(const r3dPoint3D& pos, float dist){ float distSq = dist * dist; for(int i=0; i<curPlayers_; i++) { const obj_ServerPlayer* plr = plrList_[i]; if((plr->GetPosition() - pos).LengthSq() < distSq) return true; } return false; } void ServerGameLogic::GetSpawnPositionBattleRoyale(const r3dPoint3D& GamePos, r3dPoint3D* pos, float* dir) { // Get random safezone position srand((unsigned int)r3dGetTime()); int randNum = rand() % gPostBoxesMngr.numPostBoxes_; r3dPoint3D postboxPoint = gPostBoxesMngr.postBoxes_[randNum]->GetPosition(); float radius = (gPostBoxesMngr.postBoxes_[randNum]->useRadius - 1);



Reply With Quote![[HELP] BattleRoyal 'gPostBoxesMngr' : undeclared identifier](http://ragezone.com/hyper728.png)


