room tag not working

Results 1 to 1 of 1
  1. #1
    Infraction Banned maxolahird is offline
    MemberRank
    Sep 2010 Join Date
    195Posts

    room tag not working

    --edit--
    It fixed by itself I'm not sure but this time I compiled matchserver aswell.
    --edit--
    Hi, I need help about Infinite ammo roomtag... [R] is working fine but [IA] is not working at all... anyone could help me please?

    I tried
    m_nBulletCurrMagazine.Set_CheckCrc(m_nBulletCurrMagazine.Ref() + nAddedBullet);
    if(strstr(strlwr((char*)ZGetGameClient()->GetStageName()), "[ia]"))
    {
    m_nBulletSpare.Set_CheckCrc(m_nBulletSpare.Ref() - nAddedBullet);
    }
    and
    m_nBulletCurrMagazine.Set_CheckCrc(m_nBulletCurrMagazine.Ref() + nAddedBullet);
    if(!strstr(strlwr((char*)ZGetGameClient()->GetStageName()), "[ia]"))
    {
    m_nBulletSpare.Set_CheckCrc(m_nBulletSpare.Ref() - nAddedBullet);
    }

    Both didnt work at all...

    here is the entire code

    bool ZItem::Reload()
    {
    if (m_pDesc == NULL)
    {
    //_ASSERT(0);
    return false;
    }
    //_ASSERT(GetItemType() == MMIT_RANGE);


    int nAddedBullet = m_pDesc->m_nMagazine.Ref() - m_nBulletCurrMagazine.Ref();
    if (nAddedBullet > m_nBulletSpare.Ref()) nAddedBullet = m_nBulletSpare.Ref();
    if (nAddedBullet <= 0) return false;

    m_nBulletCurrMagazine.Set_CheckCrc(m_nBulletCurrMagazine.Ref() + nAddedBullet);
    if(!strstr(strlwr((char*)ZGetGameClient()->GetStageName()), "[ia]"))
    {
    m_nBulletSpare.Set_CheckCrc(m_nBulletSpare.Ref() - nAddedBullet);
    }

    return true;
    }

    Appreciate any help, thank you!
    Last edited by maxolahird; 10-08-16 at 10:05 PM.




Advertisement