Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: markhep_1 on Sun 30/08/2009 19:23:59

Title: texbox problem
Post by: markhep_1 on Sun 30/08/2009 19:23:59
hi probley a simple quistion i got this code that works
code:
Display("The player has $%d.", player.InventoryQuantity[iCash.ID]);

the problem is i dont want to display it i want it to appear in a textbox what code would i write
Title: Re: texbox problem
Post by: Akatosh on Sun 30/08/2009 22:52:32
Simple indeed.


TextBox.Text=String.Format("The player has $%d.", player.InventoryQuantity[iCash.ID]);


Untested, but this should work.
Title: Re: texbox problem
Post by: markhep_1 on Mon 31/08/2009 11:55:53
perfect mate nice one