13.08.2017, 11:21
Код:
new igracVozilo = GetPlayerVehicleID(playerid);
Код:
TDEditor_PTD[playerid][5] = CreatePlayerTextDraw(playerid, 570.000000, 364.416717, ""); PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][5], 0.000000, 0.000000); PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][5], 63.767906, 77.027442); PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][5], 1); PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][5], -1); PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][5], 0); PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][5], 0); PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][5], 255); PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][5], 5); PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][5], 0); PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][5], 0); PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][5], igracVozilo); PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][5], 337.000000, 0.000000, 313.000000, 0.931141); PlayerTextDrawSetPreviewVehCol(playerid, TDEditor_PTD[playerid][5], 3, 1); PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][5]);
When i pass the variable "igracVozilo" to PlayerTextDrawSetPreview, it displays the player skin with ID 1.
But if I pass the vehicleid ID directly, it works.
Any idea?