[Help] randomoption.cpp Warnings while Compiling

Results 1 to 6 of 6
  1. #1
    Elite Member dean310 is offline
    Member +Rank
    Aug 2010 Join Date
    175Posts

    [Help] randomoption.cpp Warnings while Compiling

    Hello , I searched everywhere and seek the net.
    But i couldn't find everywhere how to fix this warning :

    Spoiler:
    d:\v16 FLYFF SOURCE\_Common\randomoption.cpp(265) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data



    Please help me. Is it going to be a problem in the server if i ignore it ?


  2. #2
    [R8]ℓσℓ32 caja is offline
    Grand MasterRank
    Oct 2008 Join Date
    Here!Location
    1,502Posts

    Re: [Help] randomoption.cpp Warnings while Compiling

    It's a warning not an error.

  3. #3
    Flyff Developer ShadowDragon is offline
    Grand MasterRank
    Apr 2009 Join Date
    1,915Posts

    Re: [Help] randomoption.cpp Warnings while Compiling

    converting from float to int simply means it will cutoff everything after the decimal point. you may or may not want this, but it doesn't hurt anything

  4. #4
    Elite Member dean310 is offline
    Member +Rank
    Aug 2010 Join Date
    175Posts

    Re: [Help] randomoption.cpp Warnings while Compiling

    Thanks ~

    sorry for bothering i was new in c++ :)

    BTW , i want to add baruna system in my source , how can i add it ? i have also another source that had a stable baruna system. can you tell me how to add it ?

  5. #5
    Flyff Developer ShadowDragon is offline
    Grand MasterRank
    Apr 2009 Join Date
    1,915Posts

    Re: [Help] randomoption.cpp Warnings while Compiling

    it's not likely you'll get someone to help with that, for one of 3 reasons.
    1. Most people here don't know how.
    2. The ones who do know, don't want to share it.
    3. Even if someone who knew wanted to share it, it's complex enough that you'd probably need a step by step tutorial to add it.

  6. #6
    Elite Member dean310 is offline
    Member +Rank
    Aug 2010 Join Date
    175Posts

    Re: [Help] randomoption.cpp Warnings while Compiling

    Oh, I see. If i were to trace all the codes in my 2nd source, will it be successful ?



Advertisement