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?
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.
Re: Error compile AI_player.cpp
yep, is exactly like that.
Re: Error compile AI_player.cpp
Is not exactly, the "R" of 'int reputation' have to be uppercase. This have worked w/ me.
Re: Error compile AI_player.cpp