Drawing A Box..
#1

Never thought this could be so hard...

Is there any way to simply draw a box (2D, of course) on-screen?


Like with these: http://twitpic.com/3md6xp - I wanna bring my supreme text draw skills to the Multiplayer world.
Reply
#2

new Text: box[MAX_PLAYERS];
box[playerid] = TextDrawCreate(645.000000, 1000.000000,"box"); // chnge this if needed
TextDrawUseBox(box[playerid] , 1);
TextDrawFont(box[playerid] , 3);
TextDrawLetterSize(box[playerid] ,1.400000, 13.000005);
TextDrawBackgroundColor(box[playerid] ,0x000000FF);
TextDrawBoxColor(box[playerid] ,0x000000FF);
TextDrawColor(box[playerid] ,0x000000FF);
TextDrawTextSize(box[playerid] , -50.000000, 0.000000);
TextDrawShowForPlayer(playerid, box[playerid]);
TextDrawDestroy(box[playerid]);

Found this with a quick search.

Peace...
Reply
#3

You've got to be kidding...

SAMP provides no functions for drawing plain boxes? San Andreas supports them. I'm not talking about text boxes and drawing a load of text draw boxes every frame to make up a box is an odd way of doing things.
Reply
#4

Do your own search then.

Peace...
Reply
#5

Use the textdraw editor
Reply
#6

I don't need a text draw editor at all (see the link in my first post - done without some "editor").

I just hoped there would be a basic function like so:
pawn Код:
CreateTextDrawBox( 270.0, 180.0, 370.0, 380.0 );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)