[HELP]Problem with texdraw set string - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]Problem with texdraw set string (
/showthread.php?tid=490361)
[HELP]Problem with texdraw set string -
cr33d - 26.01.2014
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
Re: [HELP]Problem with texdraw set string -
cr33d - 26.01.2014
BUMP! I am sorry