SA-MP Forums Archive
TextDraw is dispalyed very weird - 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: TextDraw is dispalyed very weird (/showthread.php?tid=625596)



[SOLVED]TextDraw is dispalyed very weird - BiosMarcel - 03.01.2017

Hey,

So, i have created a new TextDraw, it is displayed like this:



Now, the weird part:

PHP код:
initMapInfoTextDraw()
{
    
mapInfoTextDraw TextDrawCreate(1.000000431.000000"");
    
TextDrawBackgroundColor(mapInfoTextDraw255);
    
TextDrawFont(mapInfoTextDraw2);
    
TextDrawLetterSize(mapInfoTextDraw0.2400000.899999);
    
TextDrawColor(mapInfoTextDraw, -1);
    
TextDrawSetOutline(mapInfoTextDraw1);
    
TextDrawSetProportional(mapInfoTextDraw1);

This is the method that creates the TextDraw, but it is never called, also, i am never showing the TextDraw.
How is this even Possible? Also the Alive Players TextDraw is totally stretched (the black box). Hope someone has some ideas.

greetings Marcel


Re: TextDraw is dispalyed very weird - BiosMarcel - 03.01.2017

Ok, it is "fixed".

It seems like there were multiple samp server processes running and they couldn't be killed, restarted the VPS and everything is fine now.


Re: TextDraw is dispalyed very weird - Vince - 03.01.2017

Text must not be empty. Use a space or an underscore.


Re: TextDraw is dispalyed very weird - BiosMarcel - 03.01.2017

Quote:
Originally Posted by Vince
Посмотреть сообщение
Text must not be empty. Use a space or an underscore.
That was not the problem, i had tried that tho. I am setting it as soon as the first map is loaded which happens on startup, so thats fine anyways. Thanks tho!


Re: TextDraw is dispalyed very weird - IstuntmanI - 03.01.2017

Quote:
Originally Posted by Vince
Посмотреть сообщение
Text must not be empty. Use a space or an underscore.
The server would crash if it was actually empty (at least that's what the wiki says, I don't think it was fixed). Probably he is using the fixes include, as it prevents this mistake.


Re: TextDraw is dispalyed very weird - BiosMarcel - 03.01.2017

Quote:
Originally Posted by IstuntmanI
Посмотреть сообщение
The server would crash if it was actually empty (at least that's what the wiki says, I don't think it was fixed). Probably he is using the fixes include, as it prevents this mistake.
Quote:

text[] must NOT be empty or the server will crash! If you need a textdraw that shows nothing, use " " (a space) or _ (underscore). Now it's fixed.

https://sampwiki.blast.hk/wiki/TextDrawCreate


Re: TextDraw is dispalyed very weird - IstuntmanI - 03.01.2017

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Aw, missed that part, pretty funny.


Re: TextDraw is dispalyed very weird - BiosMarcel - 03.01.2017

Quote:
Originally Posted by IstuntmanI
Посмотреть сообщение
Aw, missed that part, pretty funny.
Yeah, kind of a fail, should be edited (i'd like to do that ... but noooo you can't create new accounts because of trolls!)