Help Vampire Mode NoTags

Results 1 to 2 of 2
  1. #1
    Member SkipChopJD is offline
    MemberRank
    May 2013 Join Date
    70Posts

    Help Vampire Mode NoTags


    Excuse me can you help me with this error and I also say that I have to edit XML?


  2. #2
    Account Upgraded | Title Enabled! Patrick2607 is offline
    MemberRank
    May 2013 Join Date
    The NetherlandsLocation
    345Posts

    Re: Help Vampire Mode NoTags

    Errm... "Illegal else without matching if" . You stated an 'else if' without an 'if' .
    See it like this.

    Code:
    if (OP == straight){
        nLoveWomen;
    }
    else if (OP == gay){
        nLoveMen;
    }
    else{
        nLoveNothing;
    }
    If you didn't state an if (OP == straight) you can not tell OP to nLoveMen if you didn't ask if OP is straight. It's like: Do If or Do Else, when if is correct, execute if, else execute else. Damn how do you explain this. You didn't state an if before the else if.

    Edit: Undo everything is ZCombatInterface.cpp and redo it again. You did something wrong. My lines of that code are somewhere else in that file... after you did that, do this:

    Find this line:
    Code:
    sprintf( szText, "%s : %d", ZMsg( MSG_WORD_ENDKILL), ZGetGame()->GetMatch()->GetRoundCount());
    Replace that line with this:
    Code:
    if ( ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_VAMP){
            sprintf( szText, "%s : %d", "Hunts", ZGetGame()->GetMatch()->GetRoundCount());
            }
            else{
            sprintf( szText, "%s : %d", ZMsg( MSG_WORD_ENDKILL), ZGetGame()->GetMatch()->GetRoundCount());
            }
    Last edited by Patrick2607; 13-06-13 at 05:58 PM.



Advertisement