textdraw help
#1

Hey guys,

I'm working on a part for my registration system and my textdraw seems to not appear on my screen.

pawn Код:
RegisterPart1[i] = TextDrawCreate(-5.000000, 120.000000, " ");
        TextDrawAlignment(RegisterPart1[i],0);
        TextDrawBackgroundColor(RegisterPart1[i],0x000000FF);
        TextDrawFont(RegisterPart1[i],1);
        TextDrawLetterSize(RegisterPart1[i],0.199999,0.899999);
        TextDrawSetProportional(RegisterPart1[i],1);
        TextDrawSetShadow(RegisterPart1[i],1);
        TextDrawColor(RegisterPart1[i],0x000000FF);
       
        RegisterPart2[i] = TextDrawCreate(-5.000000, 230.000000, " ");
        TextDrawAlignment(RegisterPart2[i],0);
        TextDrawBackgroundColor(RegisterPart2[i],0x000000FF);
        TextDrawFont(RegisterPart2[i],1);
        TextDrawLetterSize(RegisterPart2[i],0.199999,0.899999);
        TextDrawSetProportional(RegisterPart2[i],1);
        TextDrawSetShadow(RegisterPart2[i],1);
        TextDrawColor(RegisterPart2[i],0x000000FF);
codes that apply the Textdraw
Код:
TextDrawShowForPlayer(playerid, RegisterPart1[playerid]);
         	TextDrawShowForPlayer(playerid, RegisterPart2[playerid]);
This textdraw should look like this on the screen


but of course I suck at textdraw like everytime.

-Thanks for the help
Reply
#2

Hello tony_fitto,

it is totally enough when you use one textdraw per box, no need to create them playerwise, unless you want to edit the string per player.
Try these (made these boxes some time ago)

pawn Код:
box1 = TextDrawCreate(0.0, 0.0, "~n~~n~~n~~n~~n~~n~~n~~n~ ");
TextDrawTextSize(box1,690.000000,100.000000);  //Change the box size here
TextDrawAlignment(box1,0);
TextDrawUseBox(box1, 1);
TextDrawBoxColor(box1, 0x000000FF);
TextDrawFont(box1,1);
TextDrawLetterSize(box1,0.999999,1.599999);
TextDrawColor(box1,0xFFFFFFFF);
TextDrawSetOutline(box1,1);
TextDrawSetProportional(box1,1);
TextDrawSetShadow(box1,1);

box2 = TextDrawCreate(0.0, 350.0, "~n~~n~~n~~n~~n~~n~~n~~n~ ");  //To get it more up, change the 350.0
TextDrawTextSize(box2,690.000000,100.000000);   //Change the box size here
TextDrawAlignment(box2,0);
TextDrawUseBox(box2, 1);
TextDrawBoxColor(box2, 0x000000FF);
TextDrawFont(box2,1);
TextDrawLetterSize(box2,0.999999,1.599999);
TextDrawColor(box2,0xFFFFFFFF);
TextDrawSetOutline(box2,1);
TextDrawSetProportional(box2,1);
TextDrawSetShadow(box2,1);
and then just TextDrawShowForPlayer and TextDrawHideForPlayer for both (box1 and box2).


I hope this helps you.


Jeffry
Reply
#3

Thank you Jeffry,

I have already fixed the problem. =)
Thanks anyways.
Reply
#4

Quote:
Originally Posted by tony_fitto
Посмотреть сообщение
Thank you Jeffry,

I have already fixed the problem. =)
Thanks anyways.
Alright, even better then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)