[TEXTDRAWS] Textdraws mixed up
#1

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

Are you sure you have set the names right for each textdraws in their "settings"?
Reply
#3

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

A nice bump for this thread
Reply
#5

Show the code for both the text draws.
Reply
#6

pawn Code:
new Bar:expbar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
Notice that even with a normal textdraw (new Bar = include) the same happens
Reply
#7

Nice bump again
Reply
#8

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

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

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

Now, whenever I enter the vehicle, the textdraws shows up, it's not even supposed to show up
Reply
#12

Code:
TextDrawHideForPlayer(playerid,textdrawname);
Reply
#13

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

Nice bump on this thread.
Reply
#15

Quote:
Originally Posted by KnooL
Nice bump on this thread.
Reply
#16

Quote:
Originally Posted by KnooL
Quote:
Originally Posted by KnooL
Nice bump on this thread.
Reply
#17

Why don't you try to code the textdraws again instead of bumping and waiting for a reply
Reply
#18

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

Quote:
Originally Posted by KnooL
Quote:
Originally Posted by KnooL
Quote:
Originally Posted by KnooL
Nice bump on this thread.
Reply
#20

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


Forum Jump:


Users browsing this thread: 3 Guest(s)