Textdraw - Last character - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw - Last character (
/showthread.php?tid=116168)
Textdraw - Last character -
Rimeau - 27.12.2009
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
Re: Textdraw - Last character -
MerLow - 28.12.2009
I've never saw something like it, but try replace all spaces with '_' (underscores).
Re: Textdraw - Last character -
Babul - 28.12.2009
confirmed. it doesnt work with
Код:
GameTextForAll("text wont show up with this space: ",8000,3);
neither...
Re: Textdraw - Last character -
Rimeau - 28.12.2009
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
Re: Textdraw - Last character -
Rac3r - 28.12.2009
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.