Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Gungame Error with identifier's.

Skilled Illusionist
Joined
Sep 30, 2009
Messages
320
Reaction score
7
Im almost done with gungame could someone help me with the below issue?
Code:
ZCombatInterface.cpp(991) : error C2065: 'ZRuleGunGame' : undeclared identifier
ZCombatInterface.cpp(991) : error C2065: 'pRule' : undeclared identifier
ZCombatInterface.cpp(991) : error C2059: syntax error : ')'
ZCombatInterface.cpp(991) : error C3861: 'ZRuleGunGame': identifier not found, even with argument-dependent lookup
ZCombatInterface.cpp(993) : error C3861: 'pRule': identifier not found, even with argument-dependent lookup
ZCombatInterface.cpp(995) : error C2227: left of '->m_nWeaponMaxLevel' must point to class/struct/union
        type is ''unknown-type''
ZCombatInterface.cpp(995) : error C3861: 'pRule': identifier not found, even with argument-dependent lookup
ZCombatInterface.cpp(1001) : error C2227: left of '->m_nWeaponMaxLevel' must point to class/struct/union
        type is ''unknown-type''
ZCombatInterface.cpp(1001) : error C3861: 'pRule': identifier not found, even with argument-dependent lookup
Generating Code...
 
C:\User\Secondary\Desktop
Joined
Jul 18, 2013
Messages
581
Reaction score
79
Uhm anyone told you already (FGunZ Source "GunGame" incorrect) and it's true i already check it out! :love: Remove this GunGame replace this without Find on google "RageZone GunMode"
 
Upvote 0
Skilled Illusionist
Joined
Sep 30, 2009
Messages
320
Reaction score
7
Uhm anyone told you already (FGunZ Source "GunGame" incorrect) and it's true i already check it out! :love: Remove this GunGame replace this without Find on google "RageZone GunMode"

Thank you for your support :) ( )
I already tried that it gives me level 1/0. thats the reason i shifted to fgunz.

And what about infection mode? any rough idea upon that?

Gungame fgunz ZCombatInterface.cpp file on which the above error occured. please let me know where am i doing wrong?

void ZCombatInterface::DrawMyWeaponPont(MDrawContext* pDC)
{
ZCharacter* pCharacter = GetTargetCharacter();
if (pCharacter == NULL) return;
if (m_Observer.IsVisible()) return;

MFont *pFont=GetGameFont();

pDC->SetFont(pFont);
pDC->SetColor(MCOLOR(0xFFFFFFFF));

char buffer[256];

if (ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GUNGAME)
{
ZRuleGunGame* pRule = (ZRuleGunGame*)ZGetGame()->GetMatch()->GetRule();

if (pRule)
{
if (pCharacter->m_nGunGameWeaponLevel == pRule->m_nWeaponMaxLevel)
{
pDC->SetFont(pFont);
pDC->SetColor(MCOLOR(0xFFFF0000));
}

sprintf(buffer, "[Level %d / %d]", pCharacter->m_nGunGameWeaponLevel, pRule->m_nWeaponMaxLevel);
TextRelative(pDC,660.f/800.f,480.f/600.f,buffer);
}
}
pDC->SetFont(pFont);
pDC->SetColor(MCOLOR(0xFFFFFFFF));

// ¹«±â À̸§
TextRelative(pDC,660.f/800.f,510.f/600.f,m_szItemName);

// ź¾Ë¼ö
MMatchCharItemParts nParts = pCharacter->GetItems()->GetSelectedWeaponParts();
if (nParts != MMCIP_MELEE && nParts < MMCIP_END)
{
// meleeÀ϶§´Â ź¾Ë¼ö Ç¥½Ã¸¦ ÇÏÁö ¾Ê´Â´Ù.
sprintf(buffer,"%d / %d", m_nBulletCurrMagazine, m_nBulletSpare);
TextRelative(pDC, 720.f/800.f, 585.f/600.f, buffer);
}
}
 
Last edited:
Upvote 0
Junior Spellweaver
Joined
Jun 14, 2015
Messages
123
Reaction score
20
i'm guessing you just have to include ZRuleGunGame.h (or whatever file it's defined in) at the top of the file
 
Upvote 0
Skilled Illusionist
Joined
Sep 30, 2009
Messages
320
Reaction score
7
Resolved :D thank you i traced the problem :D thank you for your time and experience sharing with me and forums.

only thing left is when i get in-game after few seconds it says FINISH and scoreboard maybe i have to add gungame.xml
any suggestions?
 
Last edited:
Upvote 0
Back
Top