26.01.2014, 11:34
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:
And put this on public OnPlayerSpawn
And ofc
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
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;
}
Код:
PlayerTextDrawShow(playerid, Zlato[playerid]);
Код:
new PlayerText:Zlato[MAX_PLAYERS];
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

