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 / Beginners Guide To Dark Game SDK Programing!

Author
Message
hackinc 2000
19
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: Puerto Rico
Posted: 11th Dec 2004 07:37
Hi I start yesterday to translate all the samples of the book Beginners Guide To DarkBasic Game Programming. If some one wants to help, "Bienbenido Sea" (You are welcome, in Spanish).

I allready workaround some problems as a Begener, but one of the things I can't get its whit the dbPrint, this trying to print from a Integer value.

Some thing Like:

int MyAge = 10;
dbPrint ("My Age is "),MyAge;

It copile ,don't guet any errors, but in the output screen i only guet the String "My Age is". Some one Knows how to doit.
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 11th Dec 2004 08:18
Good luck


Click the sig
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 11th Dec 2004 08:49
Try this instead:

int MyAge = 10;
dbPrintC("My Age is ");
dbPrint(MyAge);

This has also uncovered a missing command from the documentation - the dbPrintC command.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
hackinc 2000
19
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: Puerto Rico
Posted: 11th Dec 2004 09:50
Thanks a lot IanM that help A lot!

Note: Seems that dbPrint only print double and Character values. Not Integers.

Here is the first book proyect,
Chapter 3 - Artist Program
hackinc 2000
19
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: Puerto Rico
Posted: 11th Dec 2004 21:46


Login to post a reply

Server time is: 2024-11-18 21:53:20
Your offset time is: 2024-11-18 21:53:20