i have an idea that might work , not sure of it but you can try
set player NAME as dbText and save that on a bitmap
them GetImage(1,...
and db SaveImage(as.. "PlayerName.bmp"...
dbLoadImage("Playername.bmp"
then use that BMp as Sprite , now i don't know if thats good for your idea , but heres the exaple
char *NAME = "Nadav";
dbCreateBitmap(2,200,200);
dbText(100 - dbTextWidth(NAME)/2,100 - dbTextWidth(NAME)/2,NAME);
dbGetImage(1,0,0,200,200);
dbSaveImage("NameTag.bmp",1);
dbDeleteBitmap(2);
dbSetCurrentBitmap(0);
so what you'll get is this a Windows BMP file named NameTage.bmp
with a NAme "Nadav" in the middle of it.
let me explain so it won't see too much..
first we create a name varible
second we create a new Bitmap so we can draw on it, in our case we Write Text in it.
third implenting the Text in that bitmap , now if you look at the X and Y varibles , there is a little calc in it which makes the Text in the Center of the Bitmap, play with it a bit.
four , we Save the bitmap into an IMAGE located in PC memory with an ID of 1 (or whatever number..).
five, we Save the Bitmap into a File named "NameTag.bmp"
six, Deleting the Bitmap we worked on , we don't need it on memory anymore..
and finally
SetCurrentBitmap (0) Returning All Proccess on Screen.
so you get a File with a name tag
then , you Load the image and use it as a Sprite
if this is good for you , so i think its a nice way.
also you can change your Text Fonts and everything..
i hope helped you.
nadav