Formatting text label
#1

I've made a house system, and everything works fine... apart from when I try to format the dynamic 3d text labels.

I'm using this code:

pawn Код:
format(text, sizeof(text), "{80FF00}(%d) %s\n{FF0000}$%d", hid, hdata[hid][Name], hdata[hid][Price]);
to format the text of the text label.
The problem is, when I set a house's price to, for example, $90,000, the price in the text label just shows as $9 (the first number of the price). Like, if I set the price to $100,000, it would say "$1". I have no idea why this is happening.

FIXED IT MYSELF.
Reply


Messages In This Thread
Formatting text label - by Nick.D - 21.06.2013, 14:23
Re: Formatting text label - by Vince - 21.06.2013, 14:28
Re: Formatting text label - by Nick.D - 21.06.2013, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)