SA-MP Forums Archive
SelectableTextdraws - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SelectableTextdraws (/showthread.php?tid=522718)



SelectableTextdraws - DiNorscio - 28.06.2014

I have created all textdraws but simply I make them selectable but ingame I cant click on them.



PHP код:
public OnPlayerClickTextDraw(playeridText:clickedid)
{
    if(
clickedid == Select1Par
    {
        
SetPlayerPos(playerid1630.2030,-2328.9673,13.5469);
        
SetPlayerFacingAngle(playerid0.9392);
    }
    else if(
clickedid == Select2Par
    {
        
SetPlayerPos(playerid, -1424.6083, -290.962214.1484);
        
SetPlayerFacingAngle(playerid134.9570);
    }
    else if(
clickedid == Select3Par
    {
        
SetPlayerPos(playerid1688.79901447.775310.7675);
        
SetPlayerFacingAngle(playerid267.3902);
    }
    else if(
clickedid == Select4Par
    {
        
SetPlayerPos(playerid1688.79901447.775310.7675);
        
SetPlayerFacingAngle(playerid267.3902);
    }
    else if(
clickedid == Select5Par
    {
        
SetPlayerPos(playerid1688.79901447.775310.7675);
        
SetPlayerFacingAngle(playerid267.3902);
    }
    return 
1;

PHP код:
asa TextDrawCreate(231 ,308 "asdadsadsadsdsads");
    
TextDrawFont(asa 1);
    
TextDrawLetterSize(asa ,0.5,0.8);
    
TextDrawColor(asa 0x687872FF);
    
TextDrawSetOutline(asa true);
    
TextDrawSetProportional(asa true);
    
TextDrawSetShadow(asa 1);
    
TextDrawTextSize(asa4.0,7.6);
    
    
TextDrawNAZIV TextDrawCreate(502.000000284.486663"usebox");
    
TextDrawLetterSize(TextDrawNAZIV0.00000013.040369);
    
TextDrawTextSize(TextDrawNAZIV201.1999960.000000);
    
TextDrawAlignment(TextDrawNAZIV1);
    
TextDrawColor(TextDrawNAZIV0);
    
TextDrawUseBox(TextDrawNAZIVtrue);
    
TextDrawBoxColor(TextDrawNAZIV102);
    
TextDrawSetShadow(TextDrawNAZIV0);
    
TextDrawSetOutline(TextDrawNAZIV0);
    
TextDrawFont(TextDrawNAZIV0);
    
TextDrawBOX TextDrawCreate(286.399902272.533111"hggh");
    
TextDrawLetterSize(TextDrawBOX0.4499991.600000);
    
TextDrawAlignment(TextDrawBOX1);
    
TextDrawColor(TextDrawBOX, -1);
    
TextDrawSetShadow(TextDrawBOX0);
    
TextDrawSetOutline(TextDrawBOX1);
    
TextDrawBackgroundColor(TextDrawBOX51);
    
TextDrawFont(TextDrawBOX3);
    
TextDrawSetProportional(TextDrawBOX1);
    
Select1Par TextDrawCreate(469.200012302.406677"usebox1");
    
TextDrawLetterSize(Select1Par0.0000001.591478);
    
TextDrawTextSize(Select1Par224.3999930.000000);
    
TextDrawAlignment(Select1Par1);
    
TextDrawColor(Select1Par0);
    
TextDrawUseBox(Select1Partrue);
    
TextDrawBoxColor(Select1Par102);
    
TextDrawSetShadow(Select1Par0);
    
TextDrawSetOutline(Select1Par0);
    
TextDrawFont(Select1Par0);
    
TextDrawSetSelectable(Select1Partrue);
    
Select2Par TextDrawCreate(469.200012322.566650"usebox2");
    
TextDrawLetterSize(Select2Par0.0000001.093706);
    
TextDrawTextSize(Select2Par225.1999960.000000);
    
TextDrawAlignment(Select2Par1);
    
TextDrawColor(Select2Par0);
    
TextDrawUseBox(Select2Partrue);
    
TextDrawBoxColor(Select2Par102);
    
TextDrawSetShadow(Select2Par0);
    
TextDrawSetOutline(Select2Par0);
    
TextDrawFont(Select2Par0);
    
TextDrawSetSelectable(Select2Partrue);
    
Select3Par TextDrawCreate(466.799987337.500000"usebox3");
    
TextDrawLetterSize(Select3Par0.0000000.844812);
    
TextDrawTextSize(Select3Par226.7999870.000000);
    
TextDrawAlignment(Select3Par1);
    
TextDrawColor(Select3Par0);
    
TextDrawUseBox(Select3Partrue);
    
TextDrawBoxColor(Select3Par102);
    
TextDrawSetShadow(Select3Par0);
    
TextDrawSetOutline(Select3Par0);
    
TextDrawFont(Select3Par0);
    
TextDrawSetSelectable(Select3Partrue);
    
Select4Par TextDrawCreate(467.600006350.193328"usebox4");
    
TextDrawLetterSize(Select4Par0.0000001.176666);
    
TextDrawTextSize(Select4Par226.0000000.000000);
    
TextDrawAlignment(Select4Par1);
    
TextDrawColor(Select4Par0);
    
TextDrawUseBox(Select4Partrue);
    
TextDrawBoxColor(Select4Par102);
    
TextDrawSetShadow(Select4Par0);
    
TextDrawSetOutline(Select4Par0);
    
TextDrawFont(Select4Par0);
    
TextDrawSetSelectable(Select4Partrue);
    
Select5Par TextDrawCreate(468.399993364.380004"usebox5");
    
TextDrawLetterSize(Select5Par0.0000001.508518);
    
TextDrawTextSize(Select5Par226.0000000.000000);
    
TextDrawAlignment(Select5Par1);
    
TextDrawColor(Select5Par0);
    
TextDrawUseBox(Select5Partrue);
    
TextDrawBoxColor(Select5Par102);
    
TextDrawSetShadow(Select5Par0);
    
TextDrawSetOutline(Select5Par0);
    
TextDrawFont(Select5Par0);
    
TextDrawSetSelectable(Select5Partrue); 
OFC I defined them, and show them to player but they cant click on textdraws.
What's wrong?


Re: SelectableTextdraws - Pottus - 28.06.2014

You didn't set the TextDrawTextSize() correctly.


Re: SelectableTextdraws - DiNorscio - 28.06.2014

I used iPLEOMAX textdraw maker, if you say that is not correctly how make correctly?


Re: SelectableTextdraws - DiNorscio - 29.06.2014

HOW TO FIX IT PLEASE?