Textdraw - Last character
#1

I don't know if this is reported already (I hope not ^^), didn't find anything by searching

I had a problem with some textdraws, there were 30, but sometimes some were missing

The text shown is customizable by players

So i searched for a similarity between the strings of the missing lines, and found out, that textdraws are not shown if the last character is a space, so "This is an example sentence " wouldn't work
Reply
#2

I've never saw something like it, but try replace all spaces with '_' (underscores).
Reply
#3

confirmed. it doesnt work with
Код:
GameTextForAll("text wont show up with this space: ",8000,3);
neither...
Reply
#4

The problem is solved already (wrote a function which deletes the space), I just wanted to report the bug - No idea why the thread was moved here
Reply
#5

I've seen this before, all I did was though add a new line to the textdraw (thus meaning the newline wouldn't be displayed).

But.. it doesn't always happen.
Here is a few examples of textdraws (that work):
Код:
#define CUSTOM_GREETING "THIS SERVER IS DEVOTED TO RACING, PLAY BY OUR ~y~/RULES ~w~OR DON'T PLAY AT ALL"
DisplayScreen[2] = TextDrawCreate(75.0, 375.0, CUSTOM_GREETING);
Код:
	DisplayScreen[3] = TextDrawCreate(10.0, 424.0, "     ~W~ADRENALINE~R~X~n~	  ~y~DESIGNED BY RAC~R~3~y~R");
Here is a few examples I have to use a newline with:
Код:
DisplayScreen[6] = TextDrawCreate(585.0, 177.0, " RACE LEADERS ~n~");
Код:
DisplayScreen[7] = TextDrawCreate(630.0, 173.0, " ~n~1~n~2~n~3~n~4~n~5~n~6~n~7~n~8~n~9~n~10~n~11~n~12~n~ ");
I don't know why it happens though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)