Jump to content
  • 0

Problema textdraw-uri cam ciudata..


Daedric-Fox

Question

Problema intalnita (descriere):Deci am facut un dealership pe textdraw-uri,...problema este ca atunci cand intru in masina, imi apare background-ul de la dealership,si nu-mi mai apare, speedometerul cu toate ca speedometerul este intr-un loop, cand dau /buycar imi apare tot ds-ul cant trebuie dar cand dau sa selectez ceva imi raman toate mai putin background-ul..si dupa imi raman afisate td-urile...nu inteleg de ce
Ero(area / rile) / warning-(ul / urile):nu da absolut nicio eroare sau warning..
Liniile de cod / sursa / script-ul(obligatoriu):mai jos
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:da am incercat sa bag si td-urile de la ds intr-un loop dar degeaba mai rau face, imi dispare ceasul "00:00" si la interval de cateva secude apare acolo la ceas "Fuel:" si dupa iar dispare..

//==============================DealerShip=========

	DSBox[0] = TextDrawCreate(468.399993, 123.953308, "usebox");
	TextDrawLetterSize(DSBox[0], 0.000000, 25.401851);
	TextDrawTextSize(DSBox[0], 160.399993, 0.000000);
	TextDrawAlignment(DSBox[0], 1);
	TextDrawColor(DSBox[0], 0);
	TextDrawUseBox(DSBox[0], true);
	TextDrawBoxColor(DSBox[0], -8388540);
	TextDrawSetShadow(DSBox[0], 0);
	TextDrawSetOutline(DSBox[0], 0);
	TextDrawFont(DSBox[0], 0);

	DSBox[1] = TextDrawCreate(362.000000, 123.953338, "usebox");
	TextDrawLetterSize(DSBox[1], 0.000000, 1.010741);
	TextDrawTextSize(DSBox[1], 255.600006, 0.000000);
	TextDrawAlignment(DSBox[1], 1);
	TextDrawColor(DSBox[1], 0);
	TextDrawUseBox(DSBox[1], true);
	TextDrawBoxColor(DSBox[1], 102);
	TextDrawSetShadow(DSBox[1], 0);
	TextDrawSetOutline(DSBox[1], 0);
	TextDrawFont(DSBox[1], 0);

	DSBox[2] = TextDrawCreate(362.800018, 343.473327, "usebox");
	TextDrawLetterSize(DSBox[2], 0.000000, 0.927779);
	TextDrawTextSize(DSBox[2], 254.000000, 0.000000);
	TextDrawAlignment(DSBox[2], 1);
	TextDrawColor(DSBox[2], 0);
	TextDrawUseBox(DSBox[2], true);
	TextDrawBoxColor(DSBox[2], 102);
	TextDrawSetShadow(DSBox[2], 0);
	TextDrawSetOutline(DSBox[2], 0);
	TextDrawFont(DSBox[2], 0);

	DSText[0] = TextDrawCreate(267.200042, 123.946586, "DEALERSHIP");
	TextDrawLetterSize(DSText[0], 0.338000, 1.450666);
	TextDrawAlignment(DSText[0], 1);
	TextDrawColor(DSText[0], -1);
	TextDrawSetShadow(DSText[0], 0);
	TextDrawSetOutline(DSText[0], 1);
	TextDrawBackgroundColor(DSText[0], 51);
	TextDrawFont(DSText[0], 2);
	TextDrawSetProportional(DSText[0], 1);

	DSText[1] = TextDrawCreate(258.399993, 340.479980, "DEALERSHIP");
	TextDrawLetterSize(DSText[1], 0.373999, 1.376000);
	TextDrawAlignment(DSText[1], 1);
	TextDrawColor(DSText[1], -1);
	TextDrawSetShadow(DSText[1], 0);
	TextDrawSetOutline(DSText[1], 1);
	TextDrawBackgroundColor(DSText[1], 51);
	TextDrawFont(DSText[1], 2);
	TextDrawSetProportional(DSText[1], 1);

	DSClose = TextDrawCreate(443.199981, 121.706649, "X");
	TextDrawLetterSize(DSClose, 0.449999, 1.600000);
	TextDrawAlignment(DSClose, 1);
	TextDrawColor(DSClose, -16776961);
	TextDrawSetShadow(DSClose, 0);
	TextDrawSetOutline(DSClose, 1);
	TextDrawBackgroundColor(DSClose, 51);
	TextDrawFont(DSClose, 2);
	TextDrawSetProportional(DSClose, 1);
	TextDrawSetSelectable(DSClose, 1);


	DSCar[0] = TextDrawCreate(171.200012, 150.826614, "New Textdraw");//masina 1
	TextDrawLetterSize(DSCar[0], 0.449999, 1.600000);
	TextDrawTextSize(DSCar[0], 59.999996, 56.000000);
	TextDrawAlignment(DSCar[0], 1);
	TextDrawColor(DSCar[0], -1);
	TextDrawUseBox(DSCar[0], true);
	TextDrawBoxColor(DSCar[0], 0);
	TextDrawSetShadow(DSCar[0], 0);
	TextDrawSetOutline(DSCar[0], 1);
	TextDrawBackgroundColor(DSCar[0], 51);
	TextDrawFont(DSCar[0], 5);
	TextDrawSetProportional(DSCar[0], 1);
	TextDrawSetPreviewModel(DSCar[0], 404);
	TextDrawSetPreviewRot(DSCar[0], 0.000000, 1.000000, 40.000000, 1.000000);
	TextDrawSetSelectable(DSCar[0], 1);


	DSPrice[0] = TextDrawCreate(172.800018, 209.066650, "Ieftine");//masina 1
	TextDrawLetterSize(DSPrice[0], 0.353999, 1.301333);
	TextDrawAlignment(DSPrice[0], 1);
	TextDrawColor(DSPrice[0], -1);
	TextDrawSetShadow(DSPrice[0], 0);
	TextDrawSetOutline(DSPrice[0], 1);
	TextDrawBackgroundColor(DSPrice[0], 51);
	TextDrawFont(DSPrice[0], 2);
	TextDrawSetProportional(DSPrice[0], 1);

	DSCar[1] = TextDrawCreate(280.799987, 153.066482, "New Textdraw");//masina 2
	TextDrawLetterSize(DSCar[1], 0.449999, 1.600000);
	TextDrawTextSize(DSCar[1], 67.999992, 55.999996);
	TextDrawAlignment(DSCar[1], 1);
	TextDrawColor(DSCar[1], -1);
	TextDrawUseBox(DSCar[1], true);
	TextDrawBoxColor(DSCar[1], 0);
	TextDrawSetShadow(DSCar[1], 0);
	TextDrawSetOutline(DSCar[1], 1);
	TextDrawBackgroundColor(DSCar[1], 51);
	TextDrawFont(DSCar[1], 5);
	TextDrawSetProportional(DSCar[1], 1);
	TextDrawSetPreviewModel(DSCar[1], 415);
	TextDrawSetPreviewRot(DSCar[1], 0.000000, 0.000000, 45.000000, 1.000000);
	TextDrawSetSelectable(DSCar[1], 1);

	DSPrice[1] = TextDrawCreate(284.800018, 208.319992, "Medium");//masina 2
	TextDrawLetterSize(DSPrice[1], 0.421999, 1.525333);
	TextDrawAlignment(DSPrice[1], 1);
	TextDrawColor(DSPrice[1], -1);
	TextDrawSetShadow(DSPrice[1], 0);
	TextDrawSetOutline(DSPrice[1], 1);
	TextDrawBackgroundColor(DSPrice[1], 51);
	TextDrawFont(DSPrice[1], 2);
	TextDrawSetProportional(DSPrice[1], 1);

	DSCar[2] = TextDrawCreate(388.799987, 153.813201, "New Textdraw");//masina 3
	TextDrawLetterSize(DSCar[2], 0.449999, 1.600000);
	TextDrawTextSize(DSCar[2], 59.999996, 52.266666);
	TextDrawAlignment(DSCar[2], 1);
	TextDrawColor(DSCar[2], -1);
	TextDrawUseBox(DSCar[2], true);
	TextDrawBoxColor(DSCar[2], 0);
	TextDrawSetShadow(DSCar[2], 0);
	TextDrawSetOutline(DSCar[2], 1);
	TextDrawBackgroundColor(DSCar[2], 51);
	TextDrawFont(DSCar[2], 5);
	TextDrawSetProportional(DSCar[2], 1);
	TextDrawSetPreviewModel(DSCar[2], 411);
	TextDrawSetPreviewRot(DSCar[2], 0.000000, 0.000000, 45.000000, 1.000000);
	TextDrawSetSelectable(DSCar[2], 1);

	DSPrice[2] = TextDrawCreate(389.600006, 209.813339, "Scumpe");//masina 3
	TextDrawLetterSize(DSPrice[2], 0.373999, 1.338666);
	TextDrawAlignment(DSPrice[2], 1);
	TextDrawColor(DSPrice[2], -1);
	TextDrawSetShadow(DSPrice[2], 0);
	TextDrawSetOutline(DSPrice[2], 1);
	TextDrawBackgroundColor(DSPrice[2], 51);
	TextDrawFont(DSPrice[2], 2);
	TextDrawSetProportional(DSPrice[2], 1);

	DSCar[3] = TextDrawCreate(277.600006, 239.679901, "New Textdraw");//motoare
	TextDrawLetterSize(DSCar[3], 0.449999, 1.600000);
	TextDrawTextSize(DSCar[3], 75.999992, 52.266662);
	TextDrawAlignment(DSCar[3], 1);
	TextDrawColor(DSCar[3], -1);
	TextDrawUseBox(DSCar[3], true);
	TextDrawBoxColor(DSCar[3], 0);
	TextDrawSetShadow(DSCar[3], 0);
	TextDrawSetOutline(DSCar[3], 1);
	TextDrawBackgroundColor(DSCar[3], 51);
	TextDrawFont(DSCar[3], 5);
	TextDrawSetProportional(DSCar[3], 1);
	TextDrawSetPreviewModel(DSCar[3], 522);
	TextDrawSetPreviewRot(DSCar[3], 0.000000, 0.000000, 35.000000, 1.000000);
	TextDrawSetSelectable(DSCar[3], 1);

	DSPrice[3] = TextDrawCreate(282.399993, 293.440002, "Motoare");//motoare
	TextDrawLetterSize(DSPrice[3], 0.326000, 1.338666);
	TextDrawAlignment(DSPrice[3], 1);
	TextDrawColor(DSPrice[3], -1);
	TextDrawSetShadow(DSPrice[3], 0);
	TextDrawSetOutline(DSPrice[3], 1);
	TextDrawBackgroundColor(DSPrice[3], 51);
	TextDrawFont(DSPrice[3], 2);
	TextDrawSetProportional(DSPrice[3], 1);

	foreach(Player, x)
	{
		Speed[x] = TextDrawCreate(532.000000, 368.853302, "Speed: 100KM/h");
		TextDrawLetterSize(Speed[x], 0.237999, 1.637332);
		TextDrawAlignment(Speed[x], 1);
		TextDrawColor(Speed[x], -1);
		TextDrawSetShadow(Speed[x], 0);
		TextDrawSetOutline(Speed[x], 1);
		TextDrawBackgroundColor(Speed[x], 51);
		TextDrawFont(Speed[x], 2);
		TextDrawSetProportional(Speed[x], 1);

		VFuel[x] = TextDrawCreate(533.599975, 388.266662, "Fuel: 100Litri");
		TextDrawLetterSize(VFuel[x], 0.305999, 1.361066);
		TextDrawAlignment(VFuel[x], 1);
		TextDrawColor(VFuel[x], -1);
		TextDrawSetShadow(VFuel[x], 0);
		TextDrawSetOutline(VFuel[x], 1);
		TextDrawBackgroundColor(VFuel[x], 51);
		TextDrawFont(VFuel[x], 2);
		TextDrawSetProportional(VFuel[x], 1);

		VEHNAME[x] = TextDrawCreate(531.999877, 296.426879, "New Textdraw");
		TextDrawLetterSize(VEHNAME[x], 0.449999, 1.600000);
		TextDrawTextSize(VEHNAME[x], 83.999984, 100.799949);
		TextDrawAlignment(VEHNAME[x], 1);
		TextDrawColor(VEHNAME[x], -2139062017);
		TextDrawUseBox(VEHNAME[x], false);
		TextDrawBoxColor(VEHNAME[x], 218);
		TextDrawSetShadow(VEHNAME[x], 0);
		TextDrawSetOutline(VEHNAME[x], 0);
		TextDrawBackgroundColor(VEHNAME[x], -256);
		TextDrawFont(VEHNAME[x], 5);
		TextDrawSetProportional(VEHNAME[x], 1);
		TextDrawSetPreviewModel(VEHNAME[x], 411);
		TextDrawSetPreviewRot(VEHNAME[x], 1.000000, 1.000000, -25.000000, 1.000000);
	}

//===================================================
//==============Speedo
	SetTimer("ClockUpdate", 1000, 1);

	ClockTime = TextDrawCreate(566.400085, 5.226665, "12:12");
	TextDrawLetterSize(ClockTime, 0.546000, 2.570666);
	TextDrawAlignment(ClockTime, 1);
	TextDrawColor(ClockTime, -1);
	TextDrawSetShadow(ClockTime, 0);
	TextDrawSetOutline(ClockTime, 1);
	TextDrawBackgroundColor(ClockTime, 51);
	TextDrawFont(ClockTime, 2);
	TextDrawSetProportional(ClockTime, 1);

	ClockDate = TextDrawCreate(548.000000, 32.853332, "12/12/2000");
	TextDrawLetterSize(ClockDate, 0.373998, 1.786666);
	TextDrawAlignment(ClockDate, 1);
	TextDrawColor(ClockDate, -1);
	TextDrawSetShadow(ClockDate, 0);
	TextDrawSetOutline(ClockDate, 1);
	TextDrawBackgroundColor(ClockDate, 51);
	TextDrawFont(ClockDate, 2);
	TextDrawSetProportional(ClockDate, 1);

asa le am eu  asezate la OnGamemodeInit..

problem 2.png

problem 1.png

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Verifica la "OnPlayerEnterVehicle" daca nu cumva ai "TextDrawShowForPlayer" acolo cu "DSBox[0..1..2]"

Si adauga "TextDrawShowForPlayer(playerid,DSBox[0]); " la fiecare button care il ai.Gen "stanga" "dreapta"..etc. Banuiesc ca "DSBox[0..1..2]" e backround-ul de care zici.

Daca ti-am fost de ajutor +1 Respect!Multumesc

Link to comment
Share on other sites

  • 0

Problema este la OnGamemodeInit ...nu sunt puse calumea dar nu știu cum să le mai pun...

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

  • 0

moderator la scripting... Dar nu stii sa faci un td bine.... Foloseste player td ... Si fa-l " Box[playerid][1] " etc si creazal la player connect

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

  • 0
4 hours ago, Ph0eniX said:

moderator la scripting... Dar nu stii sa faci un td bine.... Foloseste player td ... Si fa-l " Box[playerid][1] " etc si creazal la player connect

@Ph0eniX sa stii ca daca sunt moderator scripting nu sunt profesionist,mai am de invatat, sa stii ca nu se naste nimeni invatat.

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

  • 0

o data ce esti moderator scripting ar trebui sa sti foarte multe si da ai dreptate nimeni nu se naste invatat , dar ca mod script trebuie sa mai înveti ceva de genul ... Vectori :) în fine ... Ți-am spus cum se rezolvă problema.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

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.