Problem(error/warning): Radi mi za gorivo i ime vozila i brzinu al ne radi skin vozila
Dio skripte: [ pawn ]/[ /pawn ] nezz sta da stavim
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]/[ /code ]nezz sta da stavim
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/8t8IddC
Ubacio sam bio nove tdove i opet isto
Dodaj sav kod vezano za brzinomer ovako ne mozemo nista da ti pomognemo...
Citatnew vozilo = GetPlayerVehicleID(playerid);
if(!VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
{
if(oldstate-1 && newstate)
{
PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][0]);
PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][1]);
PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][2]);
PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][3]);
PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][4]);
PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][5]);
PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][6]);
PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][7]);
}
else if(newstate == PLAYER_STATE_DRIVER)
{
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][0]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][1]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][2]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][3]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][4]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][5]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][6]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][7]);
SetPlayerArmedWeapon(playerid,0);
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
}
}
OnPlayerSpawn PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][0]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][1]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][2]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][3]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][4]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][5]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][6]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][7]);
new string[80];
format(string, sizeof(string), "Gorivo: %d L", Fuel[GetPlayerVehicleID(i)]);
PlayerTextDrawSetString(i, TDEditor_PTD[i][1], string);
}
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
if(!VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
{
new sspeed[50];
format(sspeed, sizeof(sspeed), "%d km", GetSpeed(playerid));
PlayerTextDrawSetString(playerid, TDEditor_PTD[playerid][6] , sspeed);
new Float: Pos[4];
GetVehicleVelocity(GetPlayerVehicleID(playerid), Pos[0], Pos[1], Pos[2]);
new keys, ud, lr;
GetPlayerKeys(playerid, keys, ud, lr);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
}
}
}
[pawn] TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 276.666381, 386.377716, "box");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.000000, 4.399998);
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][0], 366.000000, 0.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][0], 177);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 2);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 326.200164, 393.144470, "gorivo: 99l");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][1], 0.135665, 0.558813);
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][1], 855.000000, 0.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], -1);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][1], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 2);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 1);
TDEditor_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 305.500061, 384.333496, "brzometar");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][2], 0.125332, 0.571259);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][2], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][2], -1);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][2], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][2], 2);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][2], 1);
TDEditor_PTD[playerid][3] = CreatePlayerTextDraw(playerid, 276.366882, 385.078582, "particle:lamp_shad_64");
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][3], 88.000000, 43.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][3], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][3], 79168861);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][3], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][3], 4);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][3], 0);
TDEditor_PTD[playerid][4] = CreatePlayerTextDraw(playerid, 271.666717, 388.955596, "");
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][4], 53.000000, 48.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][4], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][4], -1);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][4], 0);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][4], 5);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][4], 0);
PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][4], 411);
PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][4], 0.000000, 0.000000, 332.000000, 1.000000);
PlayerTextDrawSetPreviewVehCol(playerid, TDEditor_PTD[playerid][4], 1, 1);
TDEditor_PTD[playerid][5] = CreatePlayerTextDraw(playerid, 280.533294, 397.707550, "infernus");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][5], 0.114666, 0.567110);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][5], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][5], -1);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][5], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][5], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][5], 2);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][5], 1);
TDEditor_PTD[playerid][6] = CreatePlayerTextDraw(playerid, 330.466949, 408.722442, "99km");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][6], 0.163665, 0.533924);
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][6], 855.000000, 0.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][6], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][6], -1);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][6], 0);
PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][6], 1);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][6], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][6], 3);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][6], 1);
TDEditor_PTD[playerid][7] = CreatePlayerTextDraw(playerid, 560.533508, 12.160030, "particle:lamp_shad_64");
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][7], 86.000000, 21.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][7], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][7], 79168923);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][7], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][7], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][7], 4);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][7], 0);[/pawn]
Legendo pogledaj skriptu sto sam ti poslao, uradio sam ti ja to...
Ovo je dio koji ti je potreban da se pokazuje model vozila... [pawn]PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][4], GetVehicleModel(GetPlayerVehicleID(playerid)));[/pawn]
to sam ti dodao.... citaj malo i gledaj bolje umjesto da molis... uzmi u svoje ruke i trudi se...