char text[200];
sprintf_s ( text, 200, "%d", score );
dbText ( x, y, text );
dbSync ( );
dbCLS ( ); //you need to clear the screen after sync so the next sync dont redraw the text on the old one
//this may cause some flashing, an alternative method would either be creating a 3d object (you can hide it if you want), or simply call dbSetBackdropOn ( ) after dbSyncRate ( )
//not sure of dbSetBackdropOn name, maybe dbBackdropOn, well you can figure it out yourself
oh on a side note, you are increasing the score once every loop, if you have 60 FPS, then you are increasing score by 60 every second, the number would be increasing very fast and it would look retarded not to mention that your FPS may get up to 1k-2k, you better make a timer and increase it by an ammount after some time