Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2012, 06:37 PM
jsr
Hill Giant
 
Join Date: Aug 2008
Location: melbourne
Posts: 187
Default Outputting a float with entity_list.messageclose?

I'm debugging some code by dumping a number of variables into /say, float's don't display correctly.
Code:
entity_list.MessageClose(this, false, 200, MT_say, "someint is %d, somefloat is %d", someint, somefloat);//DEBUG
I've tried converting the float to an int in the output but it's not giving me the precision I need. Is there another parameter I should use instead of %d?
Reply With Quote
  #2  
Old 11-27-2012, 06:44 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

%f

http://www.cplusplus.com/reference/cstdio/printf/
Reply With Quote
  #3  
Old 11-27-2012, 06:47 PM
jsr
Hill Giant
 
Join Date: Aug 2008
Location: melbourne
Posts: 187
Default

Much appreciated
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:04 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3