OnPlayerClickTextDraw help?
#1

Nothing happends when i click on the textdraw mabye u can help me?


PHP код:
if(clickedid == teleportLS// If the player clicked on the teleportLS textdraw, teleport him there!
    
{
        
SetPlayerPos(playerid1736.4478,-1789.5996,13.4922);
        
SetPlayerFacingAngle(playerid0.9392);
    }
    else if(
clickedid == teleportSF// Same as above, but for SF
    
{
        
SetPlayerPos(playerid, -1424.6083, -290.962214.1484);
        
SetPlayerFacingAngle(playerid134.9570);
    }
    else if(
clickedid == teleportLV// Same, but for LV
    
{
        
SetPlayerPos(playerid1688.79901447.775310.7675);
        
SetPlayerFacingAngle(playerid267.3902);
    }
                     
// Hide the textdraws after the player has teleport himself.
    
TextDrawHideForPlayer(playeridteleportBox);
    
TextDrawHideForPlayer(playeridteleportLS);
    
TextDrawHideForPlayer(playeridteleportSF);
    
TextDrawHideForPlayer(playeridteleportLV);
    
CancelSelectTextDraw(playerid); // Everything worked out perfectly, now stop the player to be able to select shizzle. 
Reply
#2

Hello!

Can you show us the row "TextDrawTextSize" of the textdraws?
Reply
#3

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello!

Can you show us the row "TextDrawTextSize" of the textdraws?
PHP код:
teleportBox TextDrawCreate(320.000000143.000000"~n~Teleport menu~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~_");
    
TextDrawAlignment(teleportBox2);
    
TextDrawBackgroundColor(teleportBox255);
    
TextDrawFont(teleportBox2);
    
TextDrawLetterSize(teleportBox0.5000001.000000);
    
TextDrawColor(teleportBox, -1);
    
TextDrawSetOutline(teleportBox0);
    
TextDrawSetProportional(teleportBox1);
    
TextDrawSetShadow(teleportBox1);
    
TextDrawUseBox(teleportBox1);
    
TextDrawBoxColor(teleportBox255);
    
TextDrawTextSize(teleportBox45.000000115.000000);
    
teleportLS TextDrawCreate(320.000000180.000000"Seven ~n~24");
    
TextDrawAlignment(teleportLS2);
    
TextDrawBackgroundColor(teleportLS255);
    
TextDrawFont(teleportLS2);
    
TextDrawLetterSize(teleportLS0.2600000.799999);
    
TextDrawColor(teleportLS, -1);
    
TextDrawSetOutline(teleportLS0);
    
TextDrawSetProportional(teleportLS1);
    
TextDrawSetShadow(teleportLS1);
    
teleportSF TextDrawCreate(320.000000205.000000"San Fierro~n~Airport");
    
TextDrawAlignment(teleportSF2);
    
TextDrawBackgroundColor(teleportSF255);
    
TextDrawFont(teleportSF2);
    
TextDrawLetterSize(teleportSF0.2600000.799999);
    
TextDrawColor(teleportSF, -1);
    
TextDrawSetOutline(teleportSF0);
    
TextDrawSetProportional(teleportSF1);
    
TextDrawSetShadow(teleportSF1);
    
teleportLV TextDrawCreate(320.000000230.000000"Las Venturas~n~Airport");
    
TextDrawAlignment(teleportLV2);
    
TextDrawBackgroundColor(teleportLV255);
    
TextDrawFont(teleportLV2);
    
TextDrawLetterSize(teleportLV0.2600000.799999);
    
TextDrawColor(teleportLV, -1);
    
TextDrawSetOutline(teleportLV0);
    
TextDrawSetProportional(teleportLV1);
    
TextDrawSetShadow(teleportLV1); 
Reply
#4

any clue what the problem can be?
Reply
#5

set textdraw selectable for all textdraws
PHP код:
TextDrawSetSelectable(playerid,teleportLV1); 
Reply
#6

Quote:
Originally Posted by sanamalik400
Посмотреть сообщение
set textdraw selectable for all textdraws
PHP код:
TextDrawSetSelectable(playerid,teleportLV1); 
already did

Код:
	TextDrawSetSelectable(teleportLS, true);
	TextDrawSetSelectable(teleportSF, true);
	TextDrawSetSelectable(teleportLV, true);
Reply
#7

u done?
Quote:

SelectTextDraw(playerid, color which show on selecting);

Reply
#8

Play around with TextDrawTextSize, when you hover over the button does it have any effect at all btw?
Reply
#9

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
Play around with TextDrawTextSize, when you hover over the button does it have any effect at all btw?
Nope.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)