Textdraw Making Other Textdraws Fail?
#1

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

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.
}
Reply
#3

You don't need a loop for MAX_PLAYERS.
Reply
#4

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

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.
}
Reply
#6

Hasnt worked


Still the same
Reply
#7

?
Reply
#8

Where and how do you show the textdraw to player(s)?
Reply
#9

Still fucked
Reply
#10

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)?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)