[TEXTDRAWS] Textdraws mixed up -
KnooL - 08.06.2010
Good day SA-MP,
I've got a bug that actually fucks up everything because the gamemode I use is one and all textdraws. After moving all textdraws to GameText function, I wanted to add a textdraw. Now I have exactly 2 textdraws, this is what happens; One textdraw (logo) goes to the right place where it belongs. Second textdraw (textdraw2) goes to the right place where it belongs. But.. The text of the logo textdraw goes up to the position of textdraw2 and mixes up.
This is really bugging me,
Thanks in advance for helping me out,
KnooL
Edit: Now the textdraws only mix up when entering a vehicle.
Re: [TEXTDRAWS] Textdraws mixed up -
Assyria - 08.06.2010
Are you sure you have set the names right for each textdraws in their "settings"?
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 08.06.2010
Code:
Logo = TextDrawCreate(575.0,4.0,"~g~Mafia~n~~w~City~n~~r~RPG");
TextDrawUseBox(Logo, false);
TextDrawFont(Logo,0);
TextDrawAlignment(Logo,2);
I guess that's pretty normal for a textdraw and should work.
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 09.06.2010
A nice bump for this thread
Re: [TEXTDRAWS] Textdraws mixed up -
DJDhan - 09.06.2010
Show the code for both the text draws.
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 09.06.2010
pawn Code:
new Bar:expbar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
Notice that even with a normal textdraw (new Bar = include) the same happens
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 11.06.2010
Nice bump again
Re: [TEXTDRAWS] Textdraws mixed up -
Jakku - 11.06.2010
If you are using per-player textdraws, notice you must destroy them when the player disconnects. Or next time someone else connects, per-player textdraw what wasn't destroyed, appears in a wrong place.
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 11.06.2010
Quote:
Originally Posted by Jakku
If you are using per-player textdraws, notice you must destroy them when the player disconnects. Or next time someone else connects, per-player textdraw what wasn't destroyed, appears in a wrong place.
|
Will try that out, thank you for your reply on this post.
Re: [TEXTDRAWS] Textdraws mixed up -
Jakku - 11.06.2010
Quote:
Originally Posted by KnooL
Quote:
Originally Posted by Jakku
If you are using per-player textdraws, notice you must destroy them when the player disconnects. Or next time someone else connects, per-player textdraw what wasn't destroyed, appears in a wrong place.
|
Will try that out, thank you for your reply on this post.
|
No problem. I'm glad to help. I had this same problem some time ago, in my other script. Maybe you have this same.
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 12.06.2010
Now, whenever I enter the vehicle, the textdraws shows up, it's not even supposed to show up
Re: [TEXTDRAWS] Textdraws mixed up -
DJDhan - 12.06.2010
Code:
TextDrawHideForPlayer(playerid,textdrawname);
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 12.06.2010
Quote:
Originally Posted by DJDhan
Code:
TextDrawHideForPlayer(playerid,textdrawname);
|
Already tried that, anyways I tried that on OnPlayerStateChange, and on OnPlayerEnterVehicle, still the same thing.
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 13.06.2010
Nice bump on this thread.
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 14.06.2010
Quote:
Originally Posted by KnooL
Nice bump on this thread.
|
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 16.06.2010
Quote:
Originally Posted by KnooL
Quote:
Originally Posted by KnooL
Nice bump on this thread.
|
|
Re: [TEXTDRAWS] Textdraws mixed up -
DJDhan - 16.06.2010
Why don't you try to code the textdraws again instead of bumping and waiting for a reply
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 16.06.2010
Quote:
Originally Posted by DJDhan
Why don't you try to code the textdraws again instead of bumping and waiting for a reply
|
I have already removed and re-created textdraws and such, so that's the reason
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 19.06.2010
Quote:
Originally Posted by KnooL
Quote:
Originally Posted by KnooL
Quote:
Originally Posted by KnooL
Nice bump on this thread.
|
|
|
Re: [TEXTDRAWS] Textdraws mixed up -
KnooL - 22.06.2010
Quote:
Originally Posted by KnooL
Quote:
Originally Posted by KnooL
Quote:
Originally Posted by KnooL
Quote:
Originally Posted by KnooL
Nice bump on this thread.
|
|
|
|