Fatal Error C1004 when compiling

Results 1 to 8 of 8
  1. #1
    Apprentice SupremeXisa is offline
    MemberRank
    Jul 2014 Join Date
    21Posts

    Fatal Error C1004 when compiling

    Hi

    I've been adding HP and AP by the FPS in life bar but when I compile I get this error and do not know how to fix it: /



    sorry for my english


  2. #2
    TBF Guru jetman82 is offline
    MemberRank
    Jan 2009 Join Date
    631Posts

    Re: Fatal Error C1004 when compiling

    Go down to the line :p

  3. #3
    Apprentice SupremeXisa is offline
    MemberRank
    Jul 2014 Join Date
    21Posts

    Re: Fatal Error C1004 when compiling

    Quote Originally Posted by jetman82 View Post
    Go down to the line :p
    apology not understand


    You mean

  4. #4
    TBF Guru jetman82 is offline
    MemberRank
    Jan 2009 Join Date
    631Posts

    Re: Fatal Error C1004 when compiling

    See where it says unexpect end of file found, line 4293? Double click that, it'll take you to the error.

  5. #5
    Apprentice SupremeXisa is offline
    MemberRank
    Jul 2014 Join Date
    21Posts

    Re: Fatal Error C1004 when compiling

    the error is in line 1 but as I indicated arlado tells me in 4193 and I will line it and it is the last line and this added a symbol}

  6. #6
    Apprentice SupremeXisa is offline
    MemberRank
    Jul 2014 Join Date
    21Posts

    Re: Fatal Error C1004 when compiling

    Bump help me :(

  7. #7
    Apprentice Tical is offline
    MemberRank
    Sep 2010 Join Date
    21Posts

    Re: Fatal Error C1004 when compiling

    I believe your missing a "}" somewhere, just look over the last place you edited on that cpp and see if you forgot to close it somewhere

  8. #8
    Apprentice SupremeXisa is offline
    MemberRank
    Jul 2014 Join Date
    21Posts

    Re: Fatal Error C1004 when compiling

    The last line I added is this

    Line: 1252
    ZGameClient* pGameClient = ZGetGameClient();
    if (pGameClient->GetExtra())
    {
    ZCharacter* pCharacter = ZGetGame()->m_pMyCharacter;
    if (pCharacter && !pCharacter->IsDie())
    {
    MFont* pFont = GetGameFont();
    pDC->SetFont(pFont);
    pDC->SetColor(MCOLOR(0xFFFFFFFF));

    char szMsg[128];

    sprintf(szMsg, "HP : %i / %i", (int)pCharacter->GetHP(), (int)pCharacter->GetMaxHP());
    TextRelative(pDC, 100.f/800.f, 23.f/600.f, szMsg);

    sprintf(szMsg, "AP : %i / %i", (int)pCharacter->GetAP(), (int)pCharacter->GetMaxAP());
    TextRelative(pDC, 100.f/800.f, 50.f/600.f, szMsg);

    sprintf(szMsg, "FPS : %i", (int)g_fFPS);
    TextRelative(pDC, 700.f/800.f, 23.f/600.f, szMsg);
    } }
    I have been so

    ZGetScreenEffectManager()->DrawMyHPPanal(pDC); // //³ªÀÇ »óÅÂâ(HP°ÔÀÌÁö¹Ù) #ifdef _DEBUG
    //HP
    ZGameClient* pGameClient = ZGetGameClient();


    if (pGameClient->GetExtra())
    {
    ZCharacter* pCharacter = ZGetGame()->m_pMyCharacter;
    if (pCharacter && !pCharacter->IsDie())
    {
    MFont* pFont = GetGameFont();
    pDC->SetFont(pFont);
    pDC->SetColor(MCOLOR(0xFFFFFFFF));

    char szMsg[128];

    sprintf(szMsg, "HP : %i / %i", (int)pCharacter->GetHP(), (int)pCharacter->GetMaxHP());
    TextRelative(pDC, 100.f/800.f, 23.f/600.f, szMsg);


    sprintf(szMsg, "AP : %i / %i", (int)pCharacter->GetAP(), (int)pCharacter->GetMaxAP());
    TextRelative(pDC, 100.f/800.f, 50.f/600.f, szMsg);

    sprintf(szMsg, "FPS : %i", (int)g_fFPS);
    TextRelative(pDC, 700.f/800.f, 23.f/600.f, szMsg);
    }
    }
    Any help me

    - - - Updated - - -

    Fixed

    close thread.



Advertisement