ziggi / rustext

Fix Russian text plugin for SA-MP: GameText's, TextDraw's and Menu's
MIT License
17 stars 3 forks source link

Не показывает форматируемую строку #6

Closed Pe4en9 closed 6 months ago

Pe4en9 commented 3 years ago

При форматировании строки: format(str,sizeof(str),"%s",text); PlayerTextDrawSetString(playerid, TD[playerid][0], str); И при условии что в text имеется пробел(где там пробел) `text="test";` - ТД не отобразится в кириллице.

ziggi commented 6 months ago

Я так понимаю, это проблема стандартных TextDraw, она описана здесь: https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw

If you choose values for y that are less than 1, the first text row will be invisible and only the shadow is visible. text[] must NOT be empty or the server will crash! If you need a textdraw that shows nothing, use " " (a space) or _ (underscore) If the last character in the text is a space (" "), the text will all be blank. If part of the text is off-screen, the color of the text will not show, only the shadow (if enabled) will.