Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / dbText()

Author
Message
Magma
18
Years of Service
User Offline
Joined: 28th Apr 2006
Location:
Posted: 9th May 2006 09:22
Hi,
I'm not that old school and have learned C# in school.
But now I'm playing with dark game SDK in C++.
But how do I use dbText() with floats?

How could I convert a 'float' to 'char *'?

error C2664: 'dbText' : cannot convert parameter 3 from 'float' to 'char *'
Profit
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 10th May 2006 00:00
well if you want to use a dgdk command there's always dbStr()

common people are walking in line.
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 10th May 2006 00:03
You can also use sprintf, various STL things, and when VS 2005 can be used, you've also got sprintf_s

Web Site:http://www.nicholaskingsley.co.uk
Al:Tina wants me to pop out of her birthday cake, and guess what she doesn't want me to wear...

Login to post a reply

Server time is: 2024-11-19 06:52:43
Your offset time is: 2024-11-19 06:52:43