Problem
#1

Hi, i got a problem here. I made some textdraws for team selection but the textdraws on left side are selectable but on right side they aren't. Yes i used Textdrawselectable with value 1 for both the textdraws and yeap the textdrawtextsize is also set. Any ideas? http://imgur.com/a/4DXsm

Here are the codes. One from left side and one of the right side textdraw.
Left side
PHP код:
Textdraw16 TextDrawCreate(140.399993360.391113"Arabia");
    
TextDrawLetterSize(Textdraw160.3919991.634842);
    
TextDrawAlignment(Textdraw161);
    
TextDrawTextSize(Textdraw16,291.00000,10.0000);
    
TextDrawColor(Textdraw16, -1);
    
TextDrawSetShadow(Textdraw160);
    
TextDrawSetOutline(Textdraw161);
    
TextDrawBackgroundColor(Textdraw1651);
    
TextDrawFont(Textdraw162);
    
TextDrawSetProportional(Textdraw161);
    
TextDrawSetSelectable(Textdraw16true); 
Right side
PHP код:
    Textdraw17 TextDrawCreate(483.59976187.111076"Assault");
    
TextDrawLetterSize(Textdraw170.4499991.600000);
    
TextDrawAlignment(Textdraw171);
    
TextDrawTextSize(Textdraw17,291.00000,10.0000);
    
TextDrawColor(Textdraw17, -1);
    
TextDrawSetShadow(Textdraw170);
    
TextDrawSetOutline(Textdraw171);
    
TextDrawBackgroundColor(Textdraw1751);
    
TextDrawFont(Textdraw172);
    
TextDrawSetProportional(Textdraw171);
    
TextDrawSetSelectable(Textdraw17true); 
Reply
#2

Did you probably make a mistake on OnPlayerClickTextDraw or is the clickable area too small and you just missed it? ^^
Reply
#3

I can't even select it.
Reply
#4

Someone who is able to fix it?
Reply
#5

If you're going to center the items beneath each other then by all means set TextDrawAlignment to center. In that case the whole list can probably be generated with a loop as well because the x-coordinate can stay the same while the y-coordinate is increased with a fixed amount each time. But that's beside the point.

Enable a box with a vivid color so you can verify where the clickable area actually is. You may have actually made the clickable areas too wide (290 is almost half the screen) so they may overlap the text on the right side.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)