Error compile AI_player.cpp

Results 1 to 5 of 5
  1. #1
    Member LziNN is offline
    MemberRank
    May 2013 Join Date
    localhostLocation
    40Posts

    Error compile AI_player.cpp

    Code:
    Error	1	error C2039: 'Reputation' : is not a member of 'PKT_S2C_SetPlayerReputation_s'	c:\WarZ\src\EclipseStudio\Sources\ObjectsCode\AI\AI_Player.CPP	4428
    Error	2	error C2039: 'Reputation' : is not a member of 'PKT_S2C_SetPlayerReputation_s'	c:\WarZ\src\EclipseStudio\Sources\ObjectsCode\AI\AI_Player.CPP	4436
    Code:
    void obj_Player::OnNetPacket(const PKT_S2C_SetPlayerReputation_s& n)
    {
    	if (NetworkLocal && hudMain)
    	{
    		const int diff = n.Reputation - CurLoadout.Stats.Reputation; //line 4428
    		if (diff > 0)
    		{
    			wchar_t tmpStr[64];
    			swprintf(tmpStr, 64, gLangMngr.getString("InfoMsg_ReputationAdded"), diff);
    			hudMain->showMessage(tmpStr);
    		}
    	}
    	CurLoadout.Stats.Reputation = n.Reputation; //line 4436
    }
    someone could help me on this error?


  2. #2
    Elite Member NeoZero is offline
    Member +Rank
    May 2013 Join Date
    BrazilLocation
    113Posts

    Re: Error compile AI_player.cpp

    Look at c:\WarZ\src\EclipseStudio\Sources\multiplayer\P2PMessages.h and search for this:
    Code:
    struct PKT_S2C_SetPlayerReputation_s : public DefaultPacketMixin<PKT_S2C_SetPlayerReputation>
    {
     int   Reputation;
    };
    Check if it's exactly like this. If it's not, then change it to look like this.

  3. #3
    Member LziNN is offline
    MemberRank
    May 2013 Join Date
    localhostLocation
    40Posts

    Re: Error compile AI_player.cpp

    yep, is exactly like that.

  4. #4
    Member Tupano is offline
    MemberRank
    Apr 2013 Join Date
    47Posts

    Re: Error compile AI_player.cpp

    Is not exactly, the "R" of 'int reputation' have to be uppercase. This have worked w/ me.

  5. #5
    Grand Master javaz97 is offline
    Grand MasterRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: Error compile AI_player.cpp

    yesh me too

    thank you



Advertisement