string in txt
#4

Are you sure PlayerInfo[playerid][pBanka] is 16912? Debug it:
pawn Код:
printf("PlayerInfo[playerid][pBanka] is %d", PlayerInfo[playerid][pBanka]); // It will print to the console
new MoneyString[10];
format(MoneyString,sizeof(MoneyString), "$%08d", PlayerInfo[playerid][pBanka]);
TextDrawSetString(TDMoney, MoneyString);
TextDrawShowForPlayer(playerid, TDMoney);
And tell us what it printed to the screen and to the console/server log.

I don't see any other problem, it should work since you change the text using TextDrawSetString.
Reply


Messages In This Thread
string in txt - by xyzcod2 - 14.10.2013, 14:07
Re: string in txt - by Konstantinos - 14.10.2013, 14:10
Re: string in txt - by xyzcod2 - 14.10.2013, 14:13
Re: string in txt - by Konstantinos - 14.10.2013, 14:15
Re: string in txt - by xyzcod2 - 14.10.2013, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)