28.02.2017, 21:13
Hey guys! I need your assist.
I create today an inventory sys/textdraw, and it's work. My problem is: When I add to myself an item, the textdraw become a line (|) after than item name. This textdraw is a PlayerTextDraw.
Here's a picture, you understand easier:
![](http://kephost.com/images/2017/02/28/sa-mp-200.png)
And here's the code (formatting):
I create today an inventory sys/textdraw, and it's work. My problem is: When I add to myself an item, the textdraw become a line (|) after than item name. This textdraw is a PlayerTextDraw.
Here's a picture, you understand easier:
![](http://kephost.com/images/2017/02/28/sa-mp-200.png)
And here's the code (formatting):
PHP код:
if(Player[playerid][Item][7] == 0) format(string, sizeof(string), "8. Ьres slot");//empty slot
else format(string, sizeof(string), "~w~8. %s (%d)", ItemName(Player[playerid][Item][7]), Player[playerid][ItemAmount][7]);//not empty slot
PlayerTextDrawSetString(playerid, Inventory[playerid][9], string);