[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.000000, 431.000000, "");
TextDrawBackgroundColor(mapInfoTextDraw, 255);
TextDrawFont(mapInfoTextDraw, 2);
TextDrawLetterSize(mapInfoTextDraw, 0.240000, 0.899999);
TextDrawColor(mapInfoTextDraw, -1);
TextDrawSetOutline(mapInfoTextDraw, 1);
TextDrawSetProportional(mapInfoTextDraw, 1);
}
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!)