Jump to content
  • Create New...
  • 0

float number



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


 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

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

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.