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


Messages In This Thread
Textdraw Preview - by JessThompson - 19.07.2016, 18:05
Re: Textdraw Preview - by JessThompson - 19.07.2016, 19:33

Forum Jump:


Users browsing this thread: 1 Guest(s)