Help textdraw
#1

hi my Textdraw Change color's if i Esc go back to game changes the colors of the textdraw
Reply
#2

Give us some code?
Reply
#3

i like the esc color better how to change it that?

Код:
	// MissionText TextDraw setup
	APlayerData[playerid][MissionText] = TextDrawCreate(320.0, 430.0, " "); // Setup the missiontext at the bottom of the screen
	TextDrawAlignment(APlayerData[playerid][MissionText], 2); // Align the missiontext to the center
	TextDrawFont(APlayerData[playerid][MissionText],2);
        TextDrawLetterSize(APlayerData[playerid][MissionText],0.260000, 1.000000);//
	TextDrawUseBox(APlayerData[playerid][MissionText], 1); // Set the missiontext to display inside a box
	TextDrawSetOutline(APlayerData[playerid][MissionText], 1);
	TextDrawBoxColor(APlayerData[playerid][MissionText], 193); // Set the box color of the missiontext
	TextDrawSetProportional(APlayerData[playerid][MissionText], 1);
	TextDrawColor(APlayerData[playerid][MissionText], -1);
Reply
#4

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
i like the esc color better how to change it that?

Код:
	// MissionText TextDraw setup
	APlayerData[playerid][MissionText] = TextDrawCreate(320.0, 430.0, " "); // Setup the missiontext at the bottom of the screen
	TextDrawAlignment(APlayerData[playerid][MissionText], 2); // Align the missiontext to the center
	TextDrawFont(APlayerData[playerid][MissionText],2);
        TextDrawLetterSize(APlayerData[playerid][MissionText],0.260000, 1.000000);//
	TextDrawUseBox(APlayerData[playerid][MissionText], 1); // Set the missiontext to display inside a box
	TextDrawSetOutline(APlayerData[playerid][MissionText], 1);
	TextDrawBoxColor(APlayerData[playerid][MissionText], 193); // Set the box color of the missiontext
	TextDrawSetProportional(APlayerData[playerid][MissionText], 1);
	TextDrawColor(APlayerData[playerid][MissionText], -1);
Hmm, here I can not see the problem. Here is all correct.
That is what I think!
Reply
#5

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
i like the esc color better how to change it that?

Код:
	// MissionText TextDraw setup
	APlayerData[playerid][MissionText] = TextDrawCreate(320.0, 430.0, " "); // Setup the missiontext at the bottom of the screen
I see that you have more code with this textdraw. 320.0, 430.0, ("THIS IS EMPTY ") Thats what I mean.
Maybe the mistake is there somewhere.
Reply
#6

When you load this Textdraws( under what condition)?
And do you hide or destroy this draw under some condition?
Reply
#7

Код:
// Also destroy the missiontext TextDraw for this player
TextDrawDestroy(APlayerData[playerid][MissionText]);
Reply
#8

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
Код:
// Also destroy the missiontext TextDraw for this player
TextDrawDestroy(APlayerData[playerid][MissionText]);
under what condition (callback) For example : OnPlayerUpdate or OnPlayerCommandText
Reply
#9

Nothing i Can't find.
Reply
#10

Let me (drop from sky) may be not true at all...
So next line are just my mumbling and this may not be true
You probably double create or double show this text draw to player
i can`t guest where but you will got you color probably changing this
pawn Код:
TextDrawBoxColor(APlayerData[playerid][MissionText], 193);
to this
pawn Код:
TextDrawBoxColor(APlayerData[playerid][MissionText], 386);
And if this is the color you looking then you probably double show this textdraw.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)