Textdraw Making Other Textdraws Fail? -
Kyle - 26.09.2009
When this code is added it dont show some other textdraws i have added :S
Quote:
for(new i = 0; i < MAX_PLAYERS; i++)
{
txtTypeRobbing[i] = TextDrawCreate(540.0, 320.0," ");
TextDrawTextSize(txtTypeRobbing[i],50.0, 100.0);
TextDrawUseBox(txtTypeRobbing[i], 1);
TextDrawFont(txtTypeRobbing[i], 1);
TextDrawLetterSize(txtTypeRobbing[i], 0.2, 0.85);
TextDrawSetShadow(txtTypeRobbing[i],1); // no shadow
TextDrawSetOutline(txtTypeRobbing[i],1); // thickness 1
TextDrawBackgroundColor(txtTypeRobbing[i],0x000000FF);
TextDrawBoxColor(txtTypeRobbing[i],0x0000007A);
TextDrawAlignment(txtTypeRobbing[i],2); // align right.
}
|
Do you see a problem with it?
Re: Textdraw Making Other Textdraws Fail? -
[HKS]dlegend - 26.09.2009
for(new i = 0; i < MAX_PLAYERS; i++)
{
TextTypeRobbing = TextDrawCreate(540.0, 320.0," ");
TextDrawTextSize(txtTypeRobbing,50.0, 100.0);
TextDrawUseBox(txtTypeRobbing, 1);
TextDrawFont(txtTypeRobbing, 1);
TextDrawLetterSize(txtTypeRobbing, 0.2, 0.85);
TextDrawSetShadow(txtTypeRobbing,1); // no shadow
TextDrawSetOutline(txtTypeRobbing,1); // thickness 1
TextDrawBackgroundColor(txtTypeRobbing,0x000000FF) ;
TextDrawBoxColor(txtTypeRobbing,0x0000007A);
TextDrawAlignment(txtTypeRobbing,2); // align right.
}
Re: Textdraw Making Other Textdraws Fail? -
Correlli - 26.09.2009
You don't need a loop for MAX_PLAYERS.
Re: Textdraw Making Other Textdraws Fail? -
Kyle - 26.09.2009
Its a textdraw were if somone is robbing a place it shows how much THEY are robbing so if i show it to another player the same time theres is gona be the same.
Re: Textdraw Making Other Textdraws Fail? -
Correlli - 26.09.2009
Then you're not doing it correctly.
Do it like this:
pawn Code:
new txtTypeRobbing[MAX_PLAYERS];
for(new i = 0; i < MAX_PLAYERS; i++)
{
txtTypeRobbing[i] = TextDrawCreate(540.0, 320.0, " ");
TextDrawTextSize(txtTypeRobbing[i], 50.0, 100.0);
TextDrawUseBox(txtTypeRobbing[i], 1);
TextDrawFont(txtTypeRobbing[i], 1);
TextDrawLetterSize(txtTypeRobbing[i], 0.2, 0.85);
TextDrawSetShadow(txtTypeRobbing[i], 1); // no shadow
TextDrawSetOutline(txtTypeRobbing[i], 1); // thickness 1
TextDrawBackgroundColor(txtTypeRobbing[i], 0x000000FF);
TextDrawBoxColor(txtTypeRobbing[i], 0x0000007A);
TextDrawAlignment(txtTypeRobbing[i], 2); // align right.
}
Re: Textdraw Making Other Textdraws Fail? -
Kyle - 26.09.2009
Hasnt worked
Still the same
Re: Textdraw Making Other Textdraws Fail? -
Kyle - 26.09.2009
?
Re: Textdraw Making Other Textdraws Fail? -
Correlli - 26.09.2009
Where and how do you show the textdraw to player(s)?
Re: Textdraw Making Other Textdraws Fail? -
Kyle - 26.09.2009
Still fucked
Re: Textdraw Making Other Textdraws Fail? -
Correlli - 26.09.2009
Quote:
Originally Posted by Seif_ [adream-rp.com
]
Minor mistake:
pawn Code:
new Text:txtTypeRobbing[MAX_PLAYERS];
|
Oops! I was in a hurry so i forgot the tag, thanks for correcting me.
Quote:
Originally Posted by Don Correlli
Where and how do you show the textdraw to player(s)?
|