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 and Variables

Author
Message
Crimson X
16
Years of Service
User Offline
Joined: 28th Nov 2007
Location: New Hampshire
Posted: 30th Nov 2007 00:10
He, does anyone know how to place variables into a dbText output? For example:

printf("Score: %i", score);

How would you do that in Dark GDK? Thanks in advance!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Nov 2007 13:52
Use sprintf to write the result into a buffer, then use dbText to display the buffer.

Utility plugins collection and
http://www.matrix1.demon.co.uk for older plug-ins and example code
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 30th Nov 2007 18:27 Edited at: 30th Nov 2007 18:27
Yeah, something like this:

Twin Nightmare
16
Years of Service
User Offline
Joined: 12th Jan 2008
Location:
Posted: 13th Jan 2008 05:34
Ok I was messing around after ready all of these post because I wasn't to happy with the result's of this so i took and did the code:



It seem's to work now win I call my sync next it has the text on top.

Login to post a reply

Server time is: 2024-09-29 05:32:17
Your offset time is: 2024-09-29 05:32:17