Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Не работоспособен кликабельный TextDraw

Статус
В этой теме нельзя размещать новые ответы.

Luis_Barton

Дебютант
Не работает текстдрав, он кликабелен всё настроено но выполнять функцию и даже выделяться он не хочет да и остольные тоже. При этом ошибок при компилировании нет.

Код:
	Telefon0 = TextDrawCreate(452.000000, 109.000000, "_");
	TextDrawAlignment(Telefon0, 3);
	TextDrawBackgroundColor(Telefon0, 16711730);
	TextDrawFont(Telefon0, 5);
	TextDrawLetterSize(Telefon0, 0.500000, 1.000000);
	TextDrawColor(Telefon0, -1);
	TextDrawSetOutline(Telefon0, 1);
	TextDrawSetProportional(Telefon0, 0);
	TextDrawUseBox(Telefon0, 1);
	TextDrawBoxColor(Telefon0, 16711935);
	TextDrawTextSize(Telefon0, 125.000000, 163.000000);
	TextDrawSetPreviewModel(Telefon0, 19513);
	TextDrawSetPreviewRot(Telefon0, 90.000000, 180.000000, 360.000000, 9546.000000);
	TextDrawSetSelectable(Telefon0, 0);

	Telefon1 = TextDrawCreate(460.000000, 114.000000, "_");
	TextDrawBackgroundColor(Telefon1, 65535);
	TextDrawFont(Telefon1, 5);
	TextDrawLetterSize(Telefon1, 0.500000, 1.000000);
	TextDrawColor(Telefon1, -1);
	TextDrawSetOutline(Telefon1, 1);
	TextDrawSetProportional(Telefon1, 1);
	TextDrawUseBox(Telefon1, 1);
	TextDrawBoxColor(Telefon1, -16776961);
	TextDrawTextSize(Telefon1, 110.000000, 141.000000);
	TextDrawSetPreviewModel(Telefon1, 980);
	TextDrawSetPreviewRot(Telefon1, -16.000000, 0.000000, -55.000000, 888.000000);
	TextDrawSetSelectable(Telefon1, 0);

	KNOPKA = TextDrawCreate(474.000000, 257.000000, "ON<>OFF");
	TextDrawBackgroundColor(KNOPKA, 65535);
	TextDrawFont(KNOPKA, 1);
	TextDrawLetterSize(KNOPKA, 0.500000, 1.000000);
	TextDrawColor(KNOPKA, -1);
	TextDrawSetOutline(KNOPKA, 1);
	TextDrawSetProportional(KNOPKA, 1);
	TextDrawUseBox(KNOPKA, 1);
	TextDrawBoxColor(KNOPKA, -16776961);
	TextDrawTextSize(KNOPKA, 560.000000, 0.000000);
	TextDrawSetSelectable(KNOPKA, 1);

	MENUFKA = TextDrawCreate(495.000000, 242.000000, "MENU");
	TextDrawBackgroundColor(MENUFKA, 65535);
	TextDrawFont(MENUFKA, 1);
	TextDrawLetterSize(MENUFKA, 0.500000, 1.000000);
	TextDrawColor(MENUFKA, -1);
	TextDrawSetOutline(MENUFKA, 1);
	TextDrawSetProportional(MENUFKA, 1);
	TextDrawUseBox(MENUFKA, 1);
	TextDrawBoxColor(MENUFKA, -16776961);
	TextDrawTextSize(MENUFKA, 541.000000, 0.000000);
	TextDrawSetSelectable(MENUFKA, 1);

	ZAGALOVOK = TextDrawCreate(488.000000, 113.000000, "MOBILE");
	TextDrawBackgroundColor(ZAGALOVOK, 65535);
	TextDrawFont(ZAGALOVOK, 1);
	TextDrawLetterSize(ZAGALOVOK, 0.500000, 1.000000);
	TextDrawColor(ZAGALOVOK, -1);
	TextDrawSetOutline(ZAGALOVOK, 1);
	TextDrawSetProportional(ZAGALOVOK, 1);
	TextDrawUseBox(ZAGALOVOK, 1);
	TextDrawBoxColor(ZAGALOVOK, -16776961);
	TextDrawTextSize(ZAGALOVOK, 550.000000, 0.000000);
	TextDrawSetSelectable(ZAGALOVOK, 0);

	VIZOV = TextDrawCreate(479.000000, 140.000000, "11");
	TextDrawBackgroundColor(VIZOV, 16711935);
	TextDrawFont(VIZOV, 5);
	TextDrawLetterSize(VIZOV, 0.500000, 1.000000);
	TextDrawColor(VIZOV, -1);
	TextDrawSetOutline(VIZOV, 0);
	TextDrawSetProportional(VIZOV, 1);
	TextDrawSetShadow(VIZOV, 1);
	TextDrawUseBox(VIZOV, 1);
	TextDrawBoxColor(VIZOV, 255);
	TextDrawTextSize(VIZOV, 30.000000, 30.000000);
	TextDrawSetPreviewModel(VIZOV, 19513);
	TextDrawSetPreviewRot(VIZOV, 90.000000, 145.000000, 360.000000, 0.800000);
	TextDrawSetSelectable(VIZOV, 1);

	SOOBSH = TextDrawCreate(528.000000, 140.000000, "_");
	TextDrawBackgroundColor(SOOBSH, -16711681);
	TextDrawFont(SOOBSH, 5);
	TextDrawLetterSize(SOOBSH, 0.500000, 1.000000);
	TextDrawColor(SOOBSH, -1);
	TextDrawSetOutline(SOOBSH, 0);
	TextDrawSetProportional(SOOBSH, 1);
	TextDrawSetShadow(SOOBSH, 1);
	TextDrawUseBox(SOOBSH, 1);
	TextDrawBoxColor(SOOBSH, 255);
	TextDrawTextSize(SOOBSH, 30.000000, 30.000000);
	TextDrawSetPreviewModel(SOOBSH, 18875);
	TextDrawSetPreviewRot(SOOBSH, 90.000000, 180.000000, 360.000000, 0.699998);
	TextDrawSetSelectable(SOOBSH, 1);

	SOS = TextDrawCreate(517.000000, 180.000000, "911");
	TextDrawAlignment(SOS, 2);
	TextDrawBackgroundColor(SOS, 255);
	TextDrawFont(SOS, 1);
	TextDrawLetterSize(SOS, 0.500000, 1.000000);
	TextDrawColor(SOS, -1);
	TextDrawSetOutline(SOS, 1);
	TextDrawSetProportional(SOS, 1);
	TextDrawUseBox(SOS, 1);
	TextDrawBoxColor(SOS, -16776961);
	TextDrawTextSize(SOS, 0.000000, 60.000000);
	TextDrawSetSelectable(SOS, 1);
Код:
new Text: Fon0;
new Text: Tele1;
new Text: Telefon0;
new Text: Telefon1;
new Text: KNOPKA;
new Text: MENUFKA;
new Text: ZAGALOVOK;
new Text: VIZOV;
new Text: SOOBSH;
new Text: SOS;

Код:
	if(clickedid == KNOPKA)
	{
		if(PlayerInfo[playerid][pATelef] == 0)
		{
	        TextDrawShowForPlayer(playerid, MENUFKA);
		}
		if(PlayerInfo[playerid][pATelef] == 1)
		{
            TextDrawHideForAll(MENUFKA);
		}
	}
	if(clickedid == MENUFKA)
	{
		TextDrawShowForPlayer(playerid, VIZOV);
		TextDrawShowForPlayer(playerid, SOOBSH);
		TextDrawShowForPlayer(playerid, SOS);
	}
	if(clickedid == Tele1)
	{
		if(PlayerInfo[playerid][pATelef] == 0)
		{
			TextDrawShowForPlayer(playerid, Telefon0);
			TextDrawShowForPlayer(playerid, Telefon1);
			TextDrawShowForPlayer(playerid, KNOPKA);
			TextDrawShowForPlayer(playerid, ZAGALOVOK);
		}
		if(PlayerInfo[playerid][pATelef] == 1)
		{
			TextDrawShowForPlayer(playerid, Telefon0);
			TextDrawShowForPlayer(playerid, Telefon1);
			TextDrawShowForPlayer(playerid, KNOPKA);
			TextDrawShowForPlayer(playerid, MENUFKA);
			TextDrawShowForPlayer(playerid, ZAGALOVOK);
		}
	}
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу