CTF error decompile in IGUNZ !!!

Results 1 to 2 of 2
  1. #1
    Member milagrogunz is offline
    MemberRank
    Feb 2013 Join Date
    54Posts

    CTF error decompile in IGUNZ !!!

    Stable- Gunz/ZRuleDeathMatch.cpp error

    ZRuleDeathMatch.cpp
    ZRuleDeathMatch.cpp(137) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
    Cast from base to derived requires dynamic_cast or static_cast
    ZRuleDeathMatch.cpp(156) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
    Cast from base to derived requires dynamic_cast or static_cast
    ZRuleDeathMatch.cpp(168) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
    Cast from base to derived requires dynamic_cast or static_cast
    ZRuleDeathMatch.cpp(198) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
    Cast from base to derived requires dynamic_cast or static_cast
    ZRuleDeathMatch.cpp(236) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
    Cast from base to derived requires dynamic_cast or static_cast
    ZRuleDeathMatch.cpp(246) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
    Cast from base to derived requires dynamic_cast or static_cast

    ZReplay error

    ZReplay.cpp
    ZReplay.cpp(312) : error C2512: 'ZMyCharacter' : no appropriate default constructor available
    ZReplay.cpp(318) : error C2512: 'ZNetCharacter' : no appropriate default constructor available
    ZReplay.cpp(340) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
    Cast from base to derived requires dynamic_cast or static_cast


    I need to add to keep me out this error?
    i decompile in gunz


  2. #2
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: CTF error decompile in IGUNZ !!!

    hm ok wait. define class before !
    you can see this line in your ZRuleDeathMatch.cpp

    Code:
    ZCharacter* pCharacter = (*itor).second;
    just replace all line with below one or just add (ZCharacter*) before (*itor)

    Code:
    ZCharacter* pCharacter = (ZCharacter*)(*itor).second;

    all done :)



Advertisement