Jump to content

float number


Go to solution Solved by V0iĐ,

Recommended Posts

float time_calc = (time*pkVictim->GetPoint(POINT_IMMUNE_STUN))/100;
pkVictim->ChatPacket(CHAT_TYPE_PARTY, "%f, %d", time_calc, pkVictim->GetPoint(POINT_IMMUNE_STUN));

For example:

time = 4 - int

POINT_IMMUNE_STUN = 90  - int

 so technically i should get  on chat this one:

3.60000 , 90

but instead of this im getting:

3.00000 , 90

 any solution? Im newbie in cpp

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.