Textdraw Mix-up Problem! -
Kyle - 29.10.2011
I got a problem, the textdraws seem to get confused when the textdraw is formatted, this is an example of what happens.
Anyone know how to fix, I do destroy them on the player leaves etc.
Re: Textdraw Mix-up Problem! -
Gamer_Z - 29.10.2011
it's a sa-mp bug (I've had this too? in my FXDM3), sometimes TD's get messy, don't format right etc... There are not really 100% good ways to help avoid this problem but maybe you could less destroy/create , and pre-create if possible.
Re: Textdraw Mix-up Problem! -
Vince - 29.10.2011
All textdraws have to be initialized with INVALID_TEXT_DRAW when created, or they might mix up. As you probably know, I used a lot of textdraws in my gamemode as well, and they never mix up.
Re: Textdraw Mix-up Problem! -
Lorenc_ - 29.10.2011
Do you use enums for textdraws?
Add a value of "0xFFFF" (INVALID_TEXT_DRAW) before having your textdraw made.
pawn Код:
new Text: g_TD = Text: INVALID_TEXT_DRAW;
Re: Textdraw Mix-up Problem! -
Gamer_Z - 29.10.2011
Quote:
Originally Posted by Lorenc_
Do you use enums for textdraws?
Add a value of "0xFFFF" (INVALID_TEXT_DRAW) before having your textdraw made.
pawn Код:
new Text: g_TD = Text: INVALID_TEXT_DRAW;
|
didn't know there was a fix for it ;o
but.. can any1 explain why it needs to be initialised in such way? :S
Re: Textdraw Mix-up Problem! -
Lorenc_ - 29.10.2011
Quote:
Originally Posted by Gamer_Z
didn't know there was a fix for it ;o
but.. can any1 explain why it needs to be initialised in such way? :S
|
So it contains a value lol?
Re: Textdraw Mix-up Problem! -
Kyle - 29.10.2011
Quote:
Originally Posted by Vince
All textdraws have to be initialized with INVALID_TEXT_DRAW when created, or they might mix up. As you probably know, I used a lot of textdraws in my gamemode as well, and they never mix up.
|
Quote:
Originally Posted by Lorenc_
Do you use enums for textdraws?
Add a value of "0xFFFF" (INVALID_TEXT_DRAW) before having your textdraw made.
pawn Код:
new Text: g_TD = Text: INVALID_TEXT_DRAW;
|
Thanks to both of you, ain't had time to check it yet!
Re: Textdraw Mix-up Problem! -
Gamer_Z - 29.10.2011
Quote:
Originally Posted by Lorenc_
So it contains a value lol?
|
Um all initialised variables in pawn have a default initialisation to 0 or does it not count for tags (Float: Text: Text3d: Menu

?
Re: Textdraw Mix-up Problem! -
Kyle - 30.10.2011
I tried this, did not seem to work, look: