2 Textdraw in same position -
Jaber_Brown - 04.09.2012
I have two textdraw, one is a black screen covers the half screen, and one A text textdraw, but IG i can't see the Text textdraw, i can only see the the one that covers the half screen, any solution ?
Re: 2 Textdraw in same position -
Black Wolf - 04.09.2012
2 same threads in different boards.
Re : 2 Textdraw in same position -
Jaber_Brown - 04.09.2012
Yeah, accidently pressed Submit button, sorry
Re: 2 Textdraw in same position -
Black Wolf - 04.09.2012
Can you show the textdraw code i mean where you are showing the textdraw.
Re : 2 Textdraw in same position -
Jaber_Brown - 04.09.2012
These two Textdraws are just 2 black screens (cinematic split )
pawn Код:
Textdraw0 = TextDrawCreate(712.000000, 1.000000, "-");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 0);
TextDrawLetterSize(Textdraw0, 0.439999, 11.500006);
TextDrawColor(Textdraw0, 255);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, -7.000000, 2.000000);
TextDrawShowForPlayer(playerid, Textdraw0);
Textdraw1 = TextDrawCreate(712.000000, 335.000000, "-");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 0);
TextDrawLetterSize(Textdraw1, 0.439999, 12.300008);
TextDrawColor(Textdraw1, 255);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, -7.000000, 2.000000);
TextDrawShowForPlayer(playerid, Textdraw1);
and this is a textdraw chich says The Bank, but the 2 textdraw above seems to be hiding it
pawn Код:
Textdraw2 = TextDrawCreate(314.000000, 380.000000, "The bank");
TextDrawAlignment(Textdraw0, 2);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.629999, 2.299999);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
Re: 2 Textdraw in same position -
Black Wolf - 04.09.2012
Yeah they will did you see you defined Textdraw0 2 times
pawn Код:
This is your second code
Textdraw2 = TextDrawCreate(314.000000, 380.000000, "The bank");
TextDrawAlignment(Textdraw0, 2);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.629999, 2.299999);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
See you have definded it as Textdraw2 but below that it is definded as Textdraw0 change it to Textdraw2
Re : 2 Textdraw in same position -
Jaber_Brown - 04.09.2012
pawn Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
No
Re: 2 Textdraw in same position -
Black Wolf - 04.09.2012
No you getting me wrong
Replace your second code with this and compile and test
pawn Код:
Textdraw2 = TextDrawCreate(314.000000, 380.000000, "The bank");
TextDrawAlignment(Textdraw2, 2);
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.629999, 2.299999);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
Re: 2 Textdraw in same position -
[BOPE]Seu._.Madruga - 04.09.2012
No topo do Gamemode
pawn Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
Funзхes abaixo na public OnGameModeInit()
pawn Код:
public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(712.000000, 1.000000, "-");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 0);
TextDrawLetterSize(Textdraw0, 0.439999, 11.500006);
TextDrawColor(Textdraw0, 255);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, -7.000000, 2.000000);
Textdraw1 = TextDrawCreate(712.000000, 335.000000, "-");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 0);
TextDrawLetterSize(Textdraw1, 0.439999, 12.300008);
TextDrawColor(Textdraw1, 255);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, -7.000000, 2.000000);
Textdraw2 = TextDrawCreate(314.0, 380.0, "Seu Texto");
TextDrawColor(Textdraw2, -1);
return 1;
}
Aonde inicia os textdraws
pawn Код:
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2);
Aonde destroi os textdraws
pawn Код:
TextDrawHideForPlayer(playerid,Textdraw0);
TextDrawHideForPlayer(playerid,Textdraw1);
TextDrawHideForPlayer(playerid,Textdraw2);
Se ajudei da reputation ae