[HELP]Problem with texdraw set string
#1

So i am making the gold system and i am almost finish. Now i create the 2 texdtraws with text:
1. Zlato (translate=gold) and it is working fine
2. Number of gold and there is my problem.

So i wont to show td on player spawn. I made new stock:
Код:
stock ZlatoTd(playerid)
{
    Zlato[playerid] = CreatePlayerTextDraw(playerid, 553.500000, 147.583374, "0");
	PlayerTextDrawLetterSize(playerid, Zlato[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, Zlato[playerid], 1);
	PlayerTextDrawColor(playerid, Zlato[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Zlato[playerid], 10);
	PlayerTextDrawSetOutline(playerid, Zlato[playerid], 0);
	PlayerTextDrawBackgroundColor(playerid, Zlato[playerid], 51);
	PlayerTextDrawFont(playerid, Zlato[playerid], 2);
	PlayerTextDrawSetProportional(playerid, Zlato[playerid], 1);
        new string[256];
	format(string, sizeof(string),"%s G",PlayerInfo[playerid][pZlato]);
	PlayerTextDrawSetString(playerid, Zlato[playerid], string);
	return 1;
}
And put this on public OnPlayerSpawn
Код:
PlayerTextDrawShow(playerid, Zlato[playerid]);
And ofc
Код:
new PlayerText:Zlato[MAX_PLAYERS];
On the begining of code.

So when i get IG he shows me this: http://prntscr.com/2mpqww
As you can se firs global TD is working fine but there is a problem with the second which show number of grams.
I hope that you can help me and show me what i did wrong Thanks
Reply
#2

BUMP! I am sorry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)