hmm...i put it in like this:
while ( LoopGDK ( ) )
{
if ( dbUpKey() == 1 ) {
dbMoveObject( 1, 1 );
}
if ( dbDownKey() == 1 ) {
dbMoveObject( 1, -1 );
}
if ( dbLeftKey() == 1 ) {
dbMoveObjectLeft( 1, 1 );
}
if ( dbRightKey() == 1 ) {
dbMoveObjectRight( 1, 1 );
}
//print text of object 1 coordinets
char coords [ 256 ] = "";
strcpy ( coords, "Coord's = " );
strcat ( coords, dbStr ( dbObjectPositionX ( 1 ) ) );
strcat ( coords, dbStr ( , ) );
strcat ( coords, dbStr ( dbObjectPositionY ( 1 ) ) );
strcat ( coords, dbStr ( , ) );
strcat ( coords, dbStr ( dbObjectPositionZ ( 1 ) ) );
dbText ( dbScreenWidth ( ) - 20 - dbTextWidth ( coords ), dbScreenHeight ( ) - 40, coords );
// update the screen
dbSync ( );
}
// return back to windows
return;
}
but i got 8 errors that include:
1>Main.cpp
1>c:\documents and settings\hp_owner\desktop\game resources\projects\dark gdk - 3d game3\dark gdk - 3d game3\main.cpp(70) : error C2143: syntax error : missing ')' before ','
1>c:\documents and settings\hp_owner\desktop\game resources\projects\dark gdk - 3d game3\dark gdk - 3d game3\main.cpp(70) : error C2661: 'dbStr' : no overloaded function takes 0 arguments
1>c:\documents and settings\hp_owner\desktop\game resources\projects\dark gdk - 3d game3\dark gdk - 3d game3\main.cpp(70) : error C2059: syntax error : ')'
1>c:\documents and settings\hp_owner\desktop\game resources\projects\dark gdk - 3d game3\dark gdk - 3d game3\main.cpp(70) : error C2059: syntax error : ')'
1>c:\documents and settings\hp_owner\desktop\game resources\projects\dark gdk - 3d game3\dark gdk - 3d game3\main.cpp(72) : error C2143: syntax error : missing ')' before ','
1>c:\documents and settings\hp_owner\desktop\game resources\projects\dark gdk - 3d game3\dark gdk - 3d game3\main.cpp(72) : error C2661: 'dbStr' : no overloaded function takes 0 arguments
1>c:\documents and settings\hp_owner\desktop\game resources\projects\dark gdk - 3d game3\dark gdk - 3d game3\main.cpp(72) : error C2059: syntax error : ')'
1>c:\documents and settings\hp_owner\desktop\game resources\projects\dark gdk - 3d game3\dark gdk - 3d game3\main.cpp(72) : error C2059: syntax error : ')'
1>Build log was saved at "file://c:\Documents and Settings\HP_Owner\Desktop\Game resources\Projects\Dark GDK - 3D Game3\Dark GDK - 3D Game3\Debug\BuildLog.htm"
1>Dark GDK - 3D Game3 - 8 error(s), 0 warning(s)
unless i put it in wrong?