Clickable Textdraw 'hitbox' not exactly working.
#8

Quote:
Originally Posted by gurmani11
Посмотреть сообщение
i think its alignment problem you have set it centered
Yeah, read the wiki.
But I'm still confused about the coordinates.

(i changed some stuff, so i will post the coords here & edit the post)
pawn Код:
SelectionBox1[ playerid ] = TextDrawCreate(220.000000, 143.000000, "~r~Warfare~n~~n~~n~_");
        TextDrawAlignment(SelectionBox1[ playerid ], 2);
        TextDrawBackgroundColor(SelectionBox1[ playerid ], 255);
        TextDrawFont(SelectionBox1[ playerid ], 2);
        TextDrawLetterSize(SelectionBox1[ playerid ], 0.199999,1.100000);
        TextDrawColor(SelectionBox1[ playerid ], -1);
        TextDrawSetOutline(SelectionBox1[ playerid ], 0);
        TextDrawSetProportional(SelectionBox1[ playerid ], 1);
        TextDrawSetShadow(SelectionBox1[ playerid ], 1);
        TextDrawUseBox(SelectionBox1[ playerid ], 1);
        TextDrawBoxColor(SelectionBox1[ playerid ], 117);
        TextDrawTextSize(SelectionBox1[ playerid ], 153, 220);
       
        SelectionBox2[ playerid ] = TextDrawCreate(420.000000, 143.000000, "~g~Stuntzone~n~~n~~n~_");
        TextDrawAlignment(SelectionBox2[ playerid ], 2);
        TextDrawBackgroundColor(SelectionBox2[ playerid ], 255);
        TextDrawFont(SelectionBox2[ playerid ], 2);
        TextDrawLetterSize(SelectionBox2[ playerid ], 0.199999,1.100000);
        TextDrawColor(SelectionBox2[ playerid ], -1);
        TextDrawSetOutline(SelectionBox2[ playerid ], 0);
        TextDrawSetProportional(SelectionBox2[ playerid ], 1);
        TextDrawSetShadow(SelectionBox2[ playerid ], 1);
        TextDrawUseBox(SelectionBox2[ playerid ], 1);
        TextDrawBoxColor(SelectionBox2[ playerid ], 117);
        TextDrawTextSize(SelectionBox2[ playerid ], 153, 420);
   
        SelectionWar[ playerid ] = TextDrawCreate(220.000000, 143.000000, "~n~~n~Players: 0/150");
        TextDrawAlignment(SelectionWar[ playerid ], 2);
        TextDrawBackgroundColor(SelectionWar[ playerid ], 255);
        TextDrawFont(SelectionWar[ playerid ], 2);
        TextDrawLetterSize(SelectionWar[ playerid ], 0.199999,1.100000);
        TextDrawColor(SelectionWar[ playerid ], -1);
        TextDrawSetOutline(SelectionWar[ playerid ], 0);
        TextDrawSetProportional(SelectionWar[ playerid ], 1);
        TextDrawSetShadow(SelectionWar[ playerid ], 1);

        SelectionStunt[ playerid ] = TextDrawCreate(420.000000, 143.000000, "~n~~n~Players: 0/150");
        TextDrawAlignment(SelectionStunt[ playerid ], 2);
        TextDrawBackgroundColor(SelectionStunt[ playerid ], 255);
        TextDrawFont(SelectionStunt[ playerid ], 2);
        TextDrawLetterSize(SelectionStunt[ playerid ], 0.199999,1.100000);
        TextDrawColor(SelectionStunt[ playerid ], -1);
        TextDrawSetOutline(SelectionStunt[ playerid ], 0);
        TextDrawSetProportional(SelectionStunt[ playerid ], 1);
        TextDrawSetShadow(SelectionStunt[ playerid ], 1);
I tried setting the coords the boxes have, but added/removed the new line (~n~) stuff.. still didn't work.

All I get is the "stunt spawn" now :l
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)