SA-MP Forums Archive
PlayerTextDrawSetString dont display full 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: PlayerTextDrawSetString dont display full string (/showthread.php?tid=605705)



PlayerTextDrawSetString dont display full string - ax1 - 23.04.2016

Код:
PlayerTextDrawSetString(playerid, TDD[playerid], "- Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word~n~ WORD WORD Word Word Word Word Word Word Word Word Word~n~ Word Word Word Word Word Word Word Word Word WORD ");
How it displays :
http://i.imgur.com/FZ8Qbaw.png (string is up to second ~n~ for some reason)

I tagged words that were cut off

Код:
PlayerTextDrawSetString(playerid, TDD[playerid],"- Word Word Word Word Word Word. Word Word Word Word Word Word Word Word Word Word Word~n~ Word Word Word Word Word Word Word Word Word Word. ~n~Word Word Word Word Word Word Word Word Word Word WORD.~n~ Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word");
How it displays :
http://i.imgur.com/SSOQI2w.png (nothing is cut off(as it should be))


Textdraw TDD :
Код:
TDD[playerid] = CreatePlayerTextDraw(playerid, 320.000000, 340.444427, "");
PlayerTextDrawLetterSize(playerid, TDD[playerid], 0.288500, 1.622667);
PlayerTextDrawAlignment(playerid, TDD[playerid], 2);
PlayerTextDrawColor(playerid, TDD[playerid], -1);
PlayerTextDrawSetShadow(playerid, TDD[playerid], 0);
PlayerTextDrawSetOutline(playerid, TDD[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, TDD[playerid], 51);
PlayerTextDrawFont(playerid, TDD[playerid], 1);
PlayerTextDrawSetProportional(playerid, TDD[playerid], 1);
Why does string gets cut and how do I prevent it?