Textdraw Mix-up Problem!
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

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;
Reply
#5

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
Reply
#6

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?
Reply
#7

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!
Reply
#8

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?
Reply
#9

I tried this, did not seem to work, look:

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)