SA-MP Forums Archive
Help textdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help textdraw (/showthread.php?tid=411678)



Help textdraw - DerickClark - 30.01.2013

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


Re: Help textdraw - martin3644 - 30.01.2013

Give us some code?


Re: Help textdraw - DerickClark - 30.01.2013

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);



Re: Help textdraw - martin3644 - 30.01.2013

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!


Re: Help textdraw - martin3644 - 30.01.2013

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.


Re: Help textdraw - Azazelo - 30.01.2013

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


Re: Help textdraw - DerickClark - 30.01.2013

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



Re: Help textdraw - Azazelo - 30.01.2013

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


Re: Help textdraw - DerickClark - 30.01.2013

Nothing i Can't find.


Re: Help textdraw - Azazelo - 30.01.2013

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.