04.04.2012, 11:32
Hey Guys
first I have to say that my english is very bad.
I try to describe my problem:
My Textdraws which will be destroyed and created in between times mess up their IDs.
I search since a long time for a solution and i think i found the reason for it.
Let me try to explain:
I have 2 Textdraws for example:
now Txt1 and Txt2 have a specific value.
For example:
Txt1 = 1
Txt2 = 2
Because: Txt1 ist the first textdraw which was created and got the ID 1, Text2 the second and got the ID2.
Now i Destroy both Textdraws:
And now i think they have the follow values:
Txt1 = 1
Txt2 = 2
The Textdraws are destroyed but the variables habe stil the same values. I dont know whether its right that they have stil the same values, because i dont know how to reproduce the IDs in a print for example.
Now i create Txt2 again, you have to know that there arent any Textdraws, so Txt2 get the ID 1.
Now the values:
Txt1 = 1
Txt2 = 1
As you can see they have the same values and if i do anything with Txt1 it will have impacts on Txt2.
I hope you understand it.
Now i tried to set the value to -1 when the TextDraw was destroyed, but then i got an Error because it is the wrong type (float, integer, ...).
I hope you could unterstand me and anyone knows a solution.
first I have to say that my english is very bad.
I try to describe my problem:
My Textdraws which will be destroyed and created in between times mess up their IDs.
I search since a long time for a solution and i think i found the reason for it.
Let me try to explain:
I have 2 Textdraws for example:
Код:
new PlayerText:Txt1 new PlayerText:Txt2 Txt1 = CreatePlayerTextDraw(...); Txt2 = CreatePlayerTextDraw(...);
For example:
Txt1 = 1
Txt2 = 2
Because: Txt1 ist the first textdraw which was created and got the ID 1, Text2 the second and got the ID2.
Now i Destroy both Textdraws:
Код:
PlayerTextDrawDestroy(Txt1); PlayerTextDrawDestroy(Txt2);
Txt1 = 1
Txt2 = 2
The Textdraws are destroyed but the variables habe stil the same values. I dont know whether its right that they have stil the same values, because i dont know how to reproduce the IDs in a print for example.
Now i create Txt2 again, you have to know that there arent any Textdraws, so Txt2 get the ID 1.
Now the values:
Txt1 = 1
Txt2 = 1
As you can see they have the same values and if i do anything with Txt1 it will have impacts on Txt2.
I hope you understand it.
Now i tried to set the value to -1 when the TextDraw was destroyed, but then i got an Error because it is the wrong type (float, integer, ...).
I hope you could unterstand me and anyone knows a solution.