Jump to content
  • 0

OnPlayerClickTextDraw


Question

Posted

Nush de ce nu functioneaza nici un TextDraw de la "OnPlayerClickTextDraw" degeaba apas pe el ca nu se intampla nimic, acum cateva zile a functionat.

Si daca are "SelectTextDraw" tot nu pot face nimic..

COMUNITATEA MEA DE RESURSE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spacer.png
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
www.codeup.ro / www.codeup.ro/forum

5 answers to this question

Recommended Posts

  • 0
Posted

Am sters tot ce era la OnPlayerClickTextDraw si am pus 

public OnPlayerClickTextDraw(playerid, Text:clickedid) {
   	if(clickedid == TestTD) SCM(playerid, -1, "Merge..");
	return true;
}		

si tot nu funcioneaza

Comanda:

YCMD:testtd(playerid, params[], help) 
{
	TextDrawShowForPlayer(playerid, TestTD);
	SelectTextDraw(playerid, COLOR_RED);
	return 1;
}

Si textdraw-un in sine...

	TestTD = TextDrawCreate(265.000000, 155.000000, "");
	TextDrawLetterSize(TestTD, 0.000000, 0.000000);
	TextDrawTextSize(TestTD, 189.000000, 215.000000);
	TextDrawAlignment(TestTD, 1);
	TextDrawColor(TestTD, -1);
	TextDrawSetShadow(TestTD, 0);
	TextDrawSetOutline(TestTD, 0);
	TextDrawBackgroundColor(TestTD, 0);
	TextDrawFont(TestTD, 5);
	TextDrawSetProportional(TestTD, 0);
	TextDrawSetShadow(TestTD, 0);
	TextDrawSetSelectable(TestTD, true);
	TextDrawSetPreviewModel(TestTD, 20202);
	TextDrawSetPreviewRot(TestTD, 0.000000, 0.000000, 0.000000, 1.000000);

nush ce sa mai ii fac..

COMUNITATEA MEA DE RESURSE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spacer.png
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
www.codeup.ro / www.codeup.ro/forum

  • 0
Posted

Ai un filterscript care sa aibe un alt textdraw cu OnPlayerClickTextDraw in el? Ca daca se afla return 1 intr-un filterscript in gm nu o sa mai fie chemat

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.