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 / How to put an integer in dbText

Author
Message
Scope 51791
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location:
Posted: 6th Aug 2008 05:05
I am making a simple menu and there is a Number with an up arrow and down arrow next to it. The purpose is when you press the up arrow arrow the numer goes up and visa versa with the down arrow. The problem is how will I change the text in dbText. This is what it is:



I can't change the 3 to the int sets because it will show "sets" on the screen. How would I get around this problem.
Charles Thompson
16
Years of Service
User Offline
Joined: 30th Jul 2008
Location:
Posted: 6th Aug 2008 05:17

Try that.

Charles Thompson
Scope 51791
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location:
Posted: 6th Aug 2008 05:37
I get an error for spritef.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 6th Aug 2008 05:51 Edited at: 6th Aug 2008 05:51
I think he meant "sprintf".

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Scope 51791
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location:
Posted: 6th Aug 2008 05:58
Alright! Thanks Charles and Lilith!
Charles Thompson
16
Years of Service
User Offline
Joined: 30th Jul 2008
Location:
Posted: 6th Aug 2008 06:26
I did, thanks.

Charles Thompson
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 6th Aug 2008 06:36
It's easy to get wires crossed, especially when you dwell on the same thing over and over again. All too frequently I mean to type "serves" and I end up typing "server" because I do some technical writing around the topic.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Dark Gamers
16
Years of Service
User Offline
Joined: 17th Mar 2008
Location:
Posted: 6th Aug 2008 13:17 Edited at: 6th Aug 2008 17:39
well, I usually use another way for conversion:



hoho. not suitable for ur question. sorry
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 6th Aug 2008 14:09
Dark Gamers - How would you add numbers and string?

Jason has made a class for printing text on screen. Look at that.

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
Dartec
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location:
Posted: 16th Sep 2008 03:12
Hi, I am reading this post as a new comer and having trouble with dbText & dbStr. Looking at the help documentation on Dark SDK re: these two commands I am not sure as to what you actually type? I have tried all the code snippits and still get compile errors. So at a dead end as to how to use these commands.

I wish to display the camera x, y, z positiosn on the screen a simple task no doubt but one that is baffling me even after trying all the posted code snippits.

Please can anybody show me how to use these commands?

Regards

Login to post a reply

Server time is: 2024-09-30 03:27:48
Your offset time is: 2024-09-30 03:27:48