how to make this?
#1

Hi how can i make Box like this photo just i want make a black Box

Reply
#2

Hi!

You can use this textdraw editor to realize your box.
=> https://sampforum.blast.hk/showthread.php?tid=406833

Try this! When you need help you can feel free to ask. Good luck!
Reply
#3

i use :
TextDrawUseBox(Textdraw0[playerid], 1);
TextDrawBoxColor(Textdraw0[playerid], 0x00000066)

but see pic:


i want finish somewhere i use with pen how?
Reply
#4

You need this:
https://sampwiki.blast.hk/wiki/TextDrawTextSize
Reply
#5

i use this but
see

TextDrawTextSize(Textdraw0[playerid], 1.0, 1.0);
Reply
#6

That's because you have only one line. The box wraps its content.

The solution is to add ~n~ after your text many times how long you want.
Reply
#7

this is my code can you edit ?tnx

PHP код:
    Textdraw0[playerid] = TextDrawCreate(495.444885130.471000"PING: %i");
    
TextDrawLetterSize(Textdraw0[playerid], 0.3219991.430755);
    
TextDrawAlignment(Textdraw0[playerid], 1);
    
TextDrawColor(Textdraw0[playerid], -1);
    
TextDrawSetShadow(Textdraw0[playerid], 1);
    
TextDrawSetOutline(Textdraw0[playerid], 1);
    
TextDrawBackgroundColor(Textdraw0[playerid], 255);
    
TextDrawFont(Textdraw0[playerid], 2);
    
TextDrawSetProportional(Textdraw0[playerid], 1);
    
TextDrawUseBox(Textdraw0[playerid], 1);
    
TextDrawBoxColor(Textdraw0[playerid], 0x00000066)
    
TextDrawTextSize(Textdraw0[playerid], 1.01.0); 
Reply
#8

You can add more ~n~ to make bigger or remove to make smaller.

pawn Код:
Textdraw0[playerid] = TextDrawCreate(495.444885, 130.471000, "PING: %i~n~~n~~n~~n~~n~~n~");
TextDrawLetterSize(Textdraw0[playerid], 0.321999, 1.430755);
TextDrawAlignment(Textdraw0[playerid], 1);
TextDrawColor(Textdraw0[playerid], -1);
TextDrawSetShadow(Textdraw0[playerid], 1);
TextDrawSetOutline(Textdraw0[playerid], 1);
TextDrawBackgroundColor(Textdraw0[playerid], 255);
TextDrawFont(Textdraw0[playerid], 2);
TextDrawSetProportional(Textdraw0[playerid], 1);
TextDrawUseBox(Textdraw0[playerid], 1);
TextDrawBoxColor(Textdraw0[playerid], 0x00000066);
Reply
#9

im adding your code and remove ~n~ but not work like this pic

Reply
#10

PHP код:
TextDrawTextSize(Textdraw0[playerid], 570.010.0); 
When it's too short then you have to increase 570.0.

=> EDIT:
PHP код:
Textdraw0[playerid] = TextDrawCreate(495.444885130.471000"PING: %i");
TextDrawLetterSize(Textdraw0[playerid], 0.3219991.430755);
TextDrawAlignment(Textdraw0[playerid], 1);
TextDrawColor(Textdraw0[playerid], -1);
TextDrawSetShadow(Textdraw0[playerid], 1);
TextDrawSetOutline(Textdraw0[playerid], 1);
TextDrawBackgroundColor(Textdraw0[playerid], 255);
TextDrawFont(Textdraw0[playerid], 2);
TextDrawSetProportional(Textdraw0[playerid], 1);
TextDrawUseBox(Textdraw0[playerid], 1);
TextDrawBoxColor(Textdraw0[playerid], 0x00000066)
TextDrawTextSize(Textdraw0[playerid], 570.010.0); 
This.

The ~n~ put a new row, so that the box becomes bigger. So you needn't ~n~.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)