mardi 19 juillet 2016

Textdraw Preview

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

Code:

                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]]);
                }

Let's block ads! (Why?)



Textdraw Preview

Aucun commentaire:

Enregistrer un commentaire