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
#2

Check the length of your destination string.
Reply
#3

God damn it, I hate making topics, then fixing the problem myself anyway.
Sorry! :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)