SA-MP Forums Archive
PlayerTextDraw line bug | - 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: PlayerTextDraw line bug | (/showthread.php?tid=629575)



PlayerTextDraw line bug | - Ripster - 28.02.2017

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:



And here's the code (formatting):
PHP код:
if(Player[playerid][Item][7] == 0format(stringsizeof(string), "8. Ьres slot");//empty slot
else format(stringsizeof(string), "~w~8. %s (%d)"ItemName(Player[playerid][Item][7]), Player[playerid][ItemAmount][7]);//not empty slot
PlayerTextDrawSetString(playeridInventory[playerid][9], string);