Textdraw Preview
#1

It does not update the preview when I click the arrow??

Код:
		if(playertextid == DealershipLeftArrow[playerid])
		{
			new tdstring[64], tdstringone[64];
			if(DSBuySlot[playerid] == 0) return 1;
			DSBuySlot[playerid]--;
			SetIntVar(playerid, "VehiclePicked", DSCatCon[DSBuySlot[playerid]]);
			
	 		format(tdstring, sizeof(tdstring), "%s", VehicleNames[DSCatCon[DSBuySlot[playerid]]-400]);
			PlayerTextDrawSetString(playerid, DealershipCarName[playerid], tdstring);
			
			format(tdstringone, sizeof(tdstringone), "Price: $%s", GetVehiclePrice(DSCatCon[DSBuySlot[playerid]]-400));
			PlayerTextDrawSetString(playerid, DealershipCarPrice[playerid], tdstringone);
			
			PlayerTextDrawSetPreviewModel(playerid, DealershipCarPreBL[playerid], DSCatCon[DSBuySlot[playerid]]);
			PlayerTextDrawSetPreviewModel(playerid, DealershipCarPreBR[playerid], DSCatCon[DSBuySlot[playerid]]);
			PlayerTextDrawSetPreviewModel(playerid, DealershipCarPreTL[playerid], DSCatCon[DSBuySlot[playerid]]);
			PlayerTextDrawSetPreviewModel(playerid, DealershipCarPreTR[playerid], DSCatCon[DSBuySlot[playerid]]);
		}

Here is a print screen of the preview that don't update.

I want it so when you click the grey arrows they change the car

http://prntscr.com/buxob5
Reply
#2

Updated with more infomation
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)