[HELP] BattleRoyal 'gPostBoxesMngr' : undeclared identifier

Results 1 to 5 of 5
  1. #1
    Banned Ownii is offline
    BannedRank
    Jan 2014 Join Date
    126Posts

    [HELP] BattleRoyal 'gPostBoxesMngr' : undeclared identifier

    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);


  2. #2
    Valued Member dldanny05 is offline
    MemberRank
    Jun 2016 Join Date
    139Posts

    Re: [HELP] BattleRoyal 'gPostBoxesMngr' : undeclared identifier

    Error 1 error C2065: 'gPostBoxesMngr' : undeclared identifierundeclared identifier

    Go an declare it. Simple

  3. #3
    Banned Ownii is offline
    BannedRank
    Jan 2014 Join Date
    126Posts

    Re: [HELP] BattleRoyal 'gPostBoxesMngr' : undeclared identifier

    help please ? don't speak english sorry bad.

  4. #4
    Apprentice Dtridius is offline
    MemberRank
    Dec 2016 Join Date
    21Posts

    Re: [HELP] BattleRoyal 'gPostBoxesMngr' : undeclared identifier

    Quote Originally Posted by Ownii View Post
    help please ? don't speak english sorry bad.
    you need declare this variable in servergamelogic.h
    'gPostBoxesMngr'
    if you need more help contact me. :)

  5. #5
    Proficient Member Burak DatLife is offline
    MemberRank
    Jan 2015 Join Date
    inetpub/wwwrootLocation
    173Posts

    Re: [HELP] BattleRoyal 'gPostBoxesMngr' : undeclared identifier

    Missing header file.



Advertisement