Jump to content
  • 0

Textdraw problem


andy47

Question

Problema intalnita (descriere): Pai am TD-ul din urmatoare poza si cand apas pe 0 nu merge imi acceseaza butonul Acces. Cand apas Clear merge dar cand apas 0 nu.
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):

	TextDrawPin[ 11 ] = TextDrawCreate(533.000000, 287.875000, "Acces");
	TextDrawLetterSize(TextDrawPin[ 11 ], 0.170999, 1.731249);
	TextDrawAlignment(TextDrawPin[ 11 ], 1);
	TextDrawColor(TextDrawPin[ 11 ], 16711935);
	TextDrawSetShadow(TextDrawPin[ 11 ], 0);
	TextDrawSetOutline(TextDrawPin[ 11 ], 1);
	TextDrawBackgroundColor(TextDrawPin[ 11 ], 51);
	TextDrawFont(TextDrawPin[ 11 ], 2);
	TextDrawSetProportional(TextDrawPin[ 11 ], 1);
	TextDrawSetSelectable(TextDrawPin[ 11 ], true);

	TextDrawPin[ 12 ] = TextDrawCreate(603.000000, 287.875000, "Clear");
	TextDrawLetterSize(TextDrawPin[ 12 ], 0.170999, 1.731248);
	TextDrawAlignment(TextDrawPin[ 12 ], 1);
	TextDrawColor(TextDrawPin[ 12 ], -2147483393);
	TextDrawSetShadow(TextDrawPin[ 12 ], 0);
	TextDrawSetOutline(TextDrawPin[ 12 ], 1);
	TextDrawBackgroundColor(TextDrawPin[ 12 ], 51);
	TextDrawFont(TextDrawPin[ 12 ], 2);
	TextDrawSetProportional(TextDrawPin[ 12 ], 1);
	TextDrawSetSelectable(TextDrawPin[ 12 ], true);

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(_:clickedid != INVALID_TEXT_DRAW)
	{
	    if(clickedid == TextDrawPin[ 12 ] ) // Clear
	    {
	        PinRemoveNumber(playerid);
	    }
	    else if(clickedid == TextDrawPin[ 11 ] ) // Acces
	    {
	        PinEnter(playerid);
	    }
	}
	return ( true ) ;
}


Imagini / Video (optional): 

asddas.png
Ati incercat sa rezolvati singur?: Da, l-am trecut si pe PlayerTextDraw si tot nu merge. Daca mai aveti nevoie de ceva script va dau.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.