5 mesaje
  • Mesaje: 13
  • Reacții: 1
  • Mesaje utile: 0
  • Status: Pierd vremea ^.^
  • Server: N-am
  • Regat: Shinsoo
  • [ID Discord]
  • Contact:

    Medalii

    *Problemă/Întrebare: Nu stiu de ce am eroarea asta

    *Resursă folosită (sistem/funcție/modificare): e prima data cand compilez sursa

    *Syserr:


    utils.cpp:187:34: error: use of undeclared identifier 'FLT_EPSILON'
    187 | } while (s >= 1.f || fabs(s) < FLT_EPSILON);
    |


    *Fișier(e) cu problema (link pastebin / code): https://pastebin.com/k5cAch5n

    *Poze / Video:

    📢 Resurse Metin2 Premium!

    Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.

    Vezi resursele Cumpără premium
    Premium
    Premium
    Anunț
    Administrator Administrator
  • Mesaje: 3449
  • Reacții: 48429
  • Mesaje utile: 29
  • Status: Pe aici.. 🤠
  • Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Contact:
    Avatar utilizator
    Administrator
    Administrator

    Mesaj de [HF]White »

    adauga sub #include "stdafx.h"
    Code:
    #import <float.h>
    Te asteptam si pe serverul de Discord :p - aici ne-am strans toata comunitatea de Metin2 din Romania.
    Link: https://discord.gg/jWxeDSf7HP

    Suntem peste 1700 membri! - Avem chat activ zilnic, support, cereri, resurse. :D :ymcowboy:




    See full signature
  • Mesaje: 13
  • Reacții: 1
  • Mesaje utile: 0
  • Status: Pierd vremea ^.^
  • Server: N-am
  • Regat: Shinsoo
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de Syre »

    DragonSoul.cpp:368:16: error: use of undeclared identifier 'FLT_EPSILON'
    368 | if (fCharge < FLT_EPSILON)
    | ^
    DragonSoul.cpp:387:11: error: cannot initialize return object of type 'bool' wit h an rvalue of type 'std::nullptr_t'
    387 | return NULL;
    | ^~~~
    /usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
    37 | #define NULL nullptr
    | ^~~~~~~
    DragonSoul.cpp:929:17: error: use of undeclared identifier 'FLT_EPSILON'
    929 | if (fWeight < FLT_EPSILON)
    | ^
    3 errors generated.
    gmake: *** [Makefile:108: OBJDIR/DragonSoul.o] Error 1
    gmake: *** Waiting for unfinished jobs....
    main.cpp:704:5: error: use of undeclared identifier 'bCheckpointCheck'
    704 | bCheckpointCheck = strtol(argv[optind], &ep, 10);;
    | ^
    main.cpp:705:37: error: use of undeclared identifier 'bCheckpointCheck'
    705 | printf("CHECKPOINT_CHECK %d\n", bCheckpo intCheck);
    primesc astea acum

    https://pastebin.com/p6n55MNc / dragonsoul.cpp
    https://pastebin.com/sJbuELk9 / main.cpp
  • Mesaje: 13
  • Reacții: 170
  • Mesaje utile: 0
  • Status: Pierd vremea ^.^
  • Server: 0=1
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de sfduh »

    DragonSoul.cpp:387:11: error: cannot initialize return object of type 'bool' wit h an rvalue of type 'std::nullptr_t'
    În DragonSoul.cpp la linia 387 unde ai return NULL; schimbă cu return false;
  • Mesaje: 13
  • Reacții: 1
  • Mesaje utile: 0
  • Status: Pierd vremea ^.^
  • Server: N-am
  • Regat: Shinsoo
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de Syre »

    am rezolvat, am sters ce tine de FLT_EPSILON si nu mai am probleme cea cu return false am facut o deja,. multumesc

    📢 Resurse Metin2 Premium!

    Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.

    Vezi resursele Cumpără premium
    Premium
    Premium
    Anunț
    Închis

    Înapoi la “Probleme rezolvate”

    Informații

    Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator

    Discord ID copiat: