Jump to content

[REZOLVAT] bug la textdraw gm burned


Stefano
 Share

Recommended Posts

https://imgur.com/a/lTjOPgL

Nu stiu ce se intampla, nu am modificat vreoun td sau comenzile sau ceva de genu, lucrez pe gm burned,

Problema a fost gasita la ruleta si ds

YCMD:buycar(playerid, params[], help) {
	if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, COLOR_GREY, "Nu ai nivel 3!");
	if(!PlayerToPoint(3.0,playerid,326.9715,-1514.7264,36.0325)) return SCM(playerid, COLOR_GREY, "Nu esti la dealership.");
	if(TestingModel[playerid] == 1) return 1;
			
	if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid, -1, "Ai wanted, nu poti folosi aceasta comanda!");
	new x=0, dbID[180], szQuery[256];
	format(szQuery, sizeof(szQuery), "SELECT * FROM `dsveh`");
	new Cache: result = mysql_query(SQL, szQuery);
	for(new i, j = cache_get_row_count (); i != j; ++i)
	{
		cache_get_field_content(i, "ID", dbID);
		x++;
		SelectedCar[playerid][x] = strval(dbID);
		LastDealerCar[playerid] = strval(dbID);
	}
	cache_delete(result);
	TestingModel[playerid] = 0;
	TotalDealerCars[playerid] = x;
	DealerCarType[playerid] = 1;
	InDealer[playerid] = 1;
	TogglePlayerControllable(playerid, 0);
	SetPlayerVirtualWorld(playerid, playerid+1);
	SetPlayerInterior(playerid, 0);
	SetPlayerPosEx(playerid, -2329.9380, 185.0620, 37.8267);
	DealerID[playerid] = 1;
	DealerCarColor1[playerid] = 1;
	DealerCarColor2[playerid] = 1;
	DealerCarAngle[playerid] = -61.3200;
	DealerCar[playerid] = CreateVehicleEx(DSModels[DealerID[playerid]][dModel],-2472.2488, 2235.5156, 4.6536,DealerCarAngle[playerid],DealerCarColor1[playerid],DealerCarColor2[playerid],-1);
	SetVehicleVirtualWorld(DealerCar[playerid],playerid+1);
	LinkVehicleToInterior(DealerCar[playerid], 0);
	PutPlayerInVehicleEx(playerid, DealerCar[playerid], 0);
	new string[128];
	format(string, sizeof(string), "Color 1: %d~n~Color 2: %d", DealerCarColor1[playerid], DealerCarColor2[playerid]);
	PlayerTextDrawSetString(playerid, DSTds[4], string);
	PlayerTextDrawShow(playerid, DSTds[4]);		
	PlayerTextDrawSetPreviewModel(playerid, DSTds[2], DSModels[DealerID[playerid]][dModel]);	
	PlayerTextDrawSetPreviewModel(playerid, DSTds[2], DSModels[DealerID[playerid]][dModel]);
	PlayerTextDrawSetPreviewVehCol(playerid, DSTds[2], DealerCarColor1[playerid], DealerCarColor2[playerid]);
	PlayerTextDrawShow(playerid, DSTds[2]);		
	ShowDealershipTextdraws(playerid);
	SelectTextDraw(playerid, 0x2EA1FFFF);	
	ShowCamera(playerid);	
	return 1;
}

 

 

Doamne ajuta!

image.png.b0fd17307a87063f14207dab7b98e7d9.png

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...