Jump to content
  • 0

Speedometer erori


cobalt_thekiller

Question

Salut am gasit un speedometer si as vrea sa il adaug si eu dar nu reusesc

 9388   SpeedometerPTD[0] = TextDrawCreate(504.583007, 332.333221, "box");
    TextDrawLetterSize(SpeedometerPTD[0], 0.000000, 8.360176);
    TextDrawTextSize(SpeedometerPTD[0], 633.923706, 0.000000);
    TextDrawAlignment(SpeedometerPTD[0], 1);
    TextDrawColor(SpeedometerPTD[0], -1);
    TextDrawUseBox(SpeedometerPTD[0], 1);
    TextDrawBoxColor(SpeedometerPTD[0], 268435541);
    TextDrawSetShadow(SpeedometerPTD[0], 0);
    TextDrawSetOutline(SpeedometerPTD[0], 0);
    TextDrawBackgroundColor(SpeedometerPTD[0], 255);
    TextDrawFont(SpeedometerPTD[0], 1);
    TextDrawSetProportional(SpeedometerPTD[0], 1);
    TextDrawSetShadow(SpeedometerPTD[0], 0);
    
    SpeedometerPTD[1] = TextDrawCreate(528.777526, 269.333435, "");
    TextDrawLetterSize(SpeedometerPTD[1], 0.000000, 0.000000);
    TextDrawTextSize(SpeedometerPTD[1], 96.559295, 113.916648);
    TextDrawAlignment(SpeedometerPTD[1], 1);
    TextDrawColor(SpeedometerPTD[1], -1);
    TextDrawSetShadow(SpeedometerPTD[1], 0);
    TextDrawSetOutline(SpeedometerPTD[1], 0);
    TextDrawBackgroundColor(SpeedometerPTD[1], 0);
    TextDrawFont(SpeedometerPTD[1], 5);
    TextDrawSetProportional(SpeedometerPTD[1], 1);
    TextDrawSetShadow(SpeedometerPTD[1], 0);
    TextDrawSetPreviewModel(SpeedometerPTD[1], 411);
    TextDrawSetPreviewRot(SpeedometerPTD[1], 0.000000, 0.000000, 320.000000, 1.000000);
    TextDrawSetPreviewVehCol(SpeedometerPTD[1], 1, 1);
    
    SpeedometerPTD[2] = TextDrawCreate(506.757080, 349.249877, "hud:radar_sweet");
    TextDrawLetterSize(SpeedometerPTD[2], 0.000000, 0.000000);
    TextDrawTextSize(SpeedometerPTD[2], 9.882884, 8.916657);
    TextDrawAlignment(SpeedometerPTD[2], 1);
    TextDrawColor(SpeedometerPTD[2], -1);
    TextDrawSetShadow(SpeedometerPTD[2], 0);
    TextDrawSetOutline(SpeedometerPTD[2], 0);
    TextDrawBackgroundColor(SpeedometerPTD[2], 255);
    TextDrawFont(SpeedometerPTD[2], 4);
    TextDrawSetProportional(SpeedometerPTD[2], 1);
    TextDrawSetShadow(SpeedometerPTD[2], 0);
    
    SpeedometerPTD[3] = TextDrawCreate(519.575744, 349.249908, "SPEED: 100 KM/H");
    TextDrawLetterSize(SpeedometerPTD[3], 0.358770, 1.004999);
    TextDrawAlignment(SpeedometerPTD[3], 1);
    TextDrawColor(SpeedometerPTD[3], -1);
    TextDrawSetShadow(SpeedometerPTD[3], 0);
    TextDrawSetOutline(SpeedometerPTD[3], -1);
    TextDrawBackgroundColor(SpeedometerPTD[3], 255);
    TextDrawFont(SpeedometerPTD[3], 3);
    TextDrawSetProportional(SpeedometerPTD[3], 1);
    TextDrawSetShadow(SpeedometerPTD[3], 0);
    
    SpeedometerPTD[4] = TextDrawCreate(507.694183, 362.083343, "hud:radar_impound");
    TextDrawLetterSize(SpeedometerPTD[4], 0.000000, 0.000000);
    TextDrawTextSize(SpeedometerPTD[4], 9.414361, 14.749997);
    TextDrawAlignment(SpeedometerPTD[4], 1);
    TextDrawColor(SpeedometerPTD[4], -1);
    TextDrawSetShadow(SpeedometerPTD[4], 0);
    TextDrawSetOutline(SpeedometerPTD[4], 0);
    TextDrawBackgroundColor(SpeedometerPTD[4], 255);
    TextDrawFont(SpeedometerPTD[4], 4);
    TextDrawSetProportional(SpeedometerPTD[4], 1);
    TextDrawSetShadow(SpeedometerPTD[4], 0);
    
    SpeedometerPTD[5] = TextDrawCreate(520.512634, 365.000000, "Fuel: 100 LITRI");
    TextDrawLetterSize(SpeedometerPTD[5], 0.372825, 1.121666);
    TextDrawAlignment(SpeedometerPTD[5], 1);
    TextDrawColor(SpeedometerPTD[5], -1);
    TextDrawSetShadow(SpeedometerPTD[5], 0);
    TextDrawSetOutline(SpeedometerPTD[5], 1);
    TextDrawBackgroundColor(SpeedometerPTD[5], 255);
    TextDrawFont(SpeedometerPTD[5], 3);
    TextDrawSetProportional(SpeedometerPTD[5], 1);
    TextDrawSetShadow(SpeedometerPTD[5], 0);
    
    SpeedometerPTD[6] = TextDrawCreate(508.162658, 381.333160, "hud:radar_modgarage");
    TextDrawLetterSize(SpeedometerPTD[6], 0.000000, 0.000000);
    TextDrawTextSize(SpeedometerPTD[6], 9.414367, 8.916650);
    TextDrawAlignment(SpeedometerPTD[6], 1);
    TextDrawColor(SpeedometerPTD[6], -1);
    TextDrawSetShadow(SpeedometerPTD[6], 0);
    TextDrawSetOutline(SpeedometerPTD[6], 0);
    TextDrawBackgroundColor(SpeedometerPTD[6], 255);
    TextDrawFont(SpeedometerPTD[6], 4);
    TextDrawSetProportional(SpeedometerPTD[6], 1);
    TextDrawSetShadow(SpeedometerPTD[6], 0);
    
    SpeedometerPTD[7] = TextDrawCreate(520.981323, 381.333312, "Health: 100 %");
    TextDrawLetterSize(SpeedometerPTD[7], 0.366266, 0.981666);
    TextDrawAlignment(SpeedometerPTD[7], 1);
    TextDrawColor(SpeedometerPTD[7], -1);
    TextDrawSetShadow(SpeedometerPTD[7], 0);
    TextDrawSetOutline(SpeedometerPTD[7], 1);
    TextDrawBackgroundColor(SpeedometerPTD[7], 255);
    TextDrawFont(SpeedometerPTD[7], 3);
    TextDrawSetProportional(SpeedometerPTD[7], 1);
    TextDrawSetShadow(SpeedometerPTD[7], 0);
    
    SpeedometerPTD[8] = TextDrawCreate(509.099914, 395.916687, "hud:radar_waypoint");
    TextDrawLetterSize(SpeedometerPTD[8], 0.000000, 0.000000);
    TextDrawTextSize(SpeedometerPTD[8], 8.477325, 8.916670);
    TextDrawAlignment(SpeedometerPTD[8], 1);
    TextDrawColor(SpeedometerPTD[8], -1);
    TextDrawSetShadow(SpeedometerPTD[8], 0);
    TextDrawSetOutline(SpeedometerPTD[8], 0);
    TextDrawBackgroundColor(SpeedometerPTD[8], 255);
    TextDrawFont(SpeedometerPTD[8], 4);
    TextDrawSetProportional(SpeedometerPTD[8], 1);
    TextDrawSetShadow(SpeedometerPTD[8], 0);
    
    SpeedometerPTD[9] = TextDrawCreate(521.449829, 394.750091, "KM: 1000");
    TextDrawLetterSize(SpeedometerPTD[9], 0.474495, 1.045833);
    TextDrawAlignment(SpeedometerPTD[9], 1);
    TextDrawColor(SpeedometerPTD[9], -1);
    TextDrawSetShadow(SpeedometerPTD[9], 0);
    TextDrawSetOutline(SpeedometerPTD[9], 1);
    TextDrawBackgroundColor(SpeedometerPTD[9], 255);
    TextDrawFont(SpeedometerPTD[9], 3);
    TextDrawSetProportional(SpeedometerPTD[9], 1);
    TextDrawSetShadow(SpeedometerPTD[9], 0);

 

se numea spedo[0] pana la [9] si eu am modificat la SpeedometerPTD[0] - [9]. 

NU ESTE AL MEU ESTE AL LUI ReaxoR'

cand compilez imi dai 112 warninguri 

booter.inc(9388) : warning 213: tag mismatch(112 din astea) si nici nu apare in joc . ( folosesc gm asemanator HPQ- b hood) ms 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
4 minutes ago, Banditul said:

Daca postezi al treilea topic la o diferenta de 1 ora referitor la aceasi problema care putea descrisa intr-un singur topic si bump la 3 sec dupa chiar nu te ajuta

Revenind la topic, cum este defnit SpeedometerPTD? new  Text:SpeedometerPTD sau new PlayerText:SpeedometerPTD?

Scz dar nu stiu cum sa sterg topic am incercat este PlayerText:SpeedometerPTD

Link to comment
Share on other sites

  • 0

Ai doua variante sa rezolvi problema, daca vrei sa pastrezi PlayerText (presupunand faptul ca peste tot ai folosit functionalitatea de la acest tip de textdraw) solutia e urmatoarea:

public OnPlayerConnect(palyerid)
{
    
    SpeedometerPTD[0] = CreatePlayerTextDraw(playerid, 504.583007, 332.333221, "box");
    PlayerTextDrawLetterSize(playerid, SpeedometerPTD[0], 0.000000, 8.360176);
    PlayerTextDrawTextSize(playerid, SpeedometerPTD[0], 633.923706, 0.000000);
    PlayerTextDrawAlignment(playerid, SpeedometerPTD[0], 1);
    PlayerTextDrawColor(playerid, SpeedometerPTD[0], -1);
    PlayerTextDrawUseBox(playerid, SpeedometerPTD[0], 1);
    PlayerTextDrawBoxColor(palyerid, SpeedometerPTD[0], 268435541);
    PlayerTextDrawSetShadow(playerid, SpeedometerPTD[0], 0);
    PlayerTextDrawSetOutline(playerid, SpeedometerPTD[0], 0);
    PlayerTextDrawBackgroundColor(playerid, SpeedometerPTD[0], 255);
    PlayerTextDrawFont(playerid, SpeedometerPTD[0], 1);
    PlayerTextDrawSetProportional(playerid, SpeedometerPTD[0], 1);
	// restul de textdraw folosind functiile de mai sus
}

Asta cu presupunerea ca folosesti functiile pentru PlayerTextDraw in restul gamemode-ului

Daca nu folosesti ce am mentionat mai sus, modifici din PlayerText: in Text:

Link to comment
Share on other sites

  • 0
2 minutes ago, Banditul said:

Ai doua variante sa rezolvi problema, daca vrei sa pastrezi PlayerText (presupunand faptul ca peste tot ai folosit functionalitatea de la acest tip de textdraw) solutia e urmatoarea:


public OnPlayerConnect(palyerid)
{
    
    SpeedometerPTD[0] = CreatePlayerTextDraw(playerid, 504.583007, 332.333221, "box");
    PlayerTextDrawLetterSize(playerid, SpeedometerPTD[0], 0.000000, 8.360176);
    PlayerTextDrawTextSize(playerid, SpeedometerPTD[0], 633.923706, 0.000000);
    PlayerTextDrawAlignment(playerid, SpeedometerPTD[0], 1);
    PlayerTextDrawColor(playerid, SpeedometerPTD[0], -1);
    PlayerTextDrawUseBox(playerid, SpeedometerPTD[0], 1);
    PlayerTextDrawBoxColor(palyerid, SpeedometerPTD[0], 268435541);
    PlayerTextDrawSetShadow(playerid, SpeedometerPTD[0], 0);
    PlayerTextDrawSetOutline(playerid, SpeedometerPTD[0], 0);
    PlayerTextDrawBackgroundColor(playerid, SpeedometerPTD[0], 255);
    PlayerTextDrawFont(playerid, SpeedometerPTD[0], 1);
    PlayerTextDrawSetProportional(playerid, SpeedometerPTD[0], 1);
	// restul de textdraw folosind functiile de mai sus
}

Asta cu presupunerea ca folosesti functiile pentru PlayerTextDraw in restul gamemode-ului

Daca nu folosesti ce am mentionat mai sus, modifici din PlayerText: in Text:

Conteaza daca le pun in fisierul booter.inc? Si daca poti sa imi explici mai mult pls ca sincer nu prea am inteles ms

Link to comment
Share on other sites

  • 0
3 hours ago, Banditul said:

Ai doua variante sa rezolvi problema, daca vrei sa pastrezi PlayerText (presupunand faptul ca peste tot ai folosit functionalitatea de la acest tip de textdraw) solutia e urmatoarea:



public OnPlayerConnect(palyerid)
{
    
    SpeedometerPTD[0] = CreatePlayerTextDraw(playerid, 504.583007, 332.333221, "box");
    PlayerTextDrawLetterSize(playerid, SpeedometerPTD[0], 0.000000, 8.360176);
    PlayerTextDrawTextSize(playerid, SpeedometerPTD[0], 633.923706, 0.000000);
    PlayerTextDrawAlignment(playerid, SpeedometerPTD[0], 1);
    PlayerTextDrawColor(playerid, SpeedometerPTD[0], -1);
    PlayerTextDrawUseBox(playerid, SpeedometerPTD[0], 1);
    PlayerTextDrawBoxColor(palyerid, SpeedometerPTD[0], 268435541);
    PlayerTextDrawSetShadow(playerid, SpeedometerPTD[0], 0);
    PlayerTextDrawSetOutline(playerid, SpeedometerPTD[0], 0);
    PlayerTextDrawBackgroundColor(playerid, SpeedometerPTD[0], 255);
    PlayerTextDrawFont(playerid, SpeedometerPTD[0], 1);
    PlayerTextDrawSetProportional(playerid, SpeedometerPTD[0], 1);
	// restul de textdraw folosind functiile de mai sus
}

Asta cu presupunerea ca folosesti functiile pentru PlayerTextDraw in restul gamemode-ului

Daca nu folosesti ce am mentionat mai sus, modifici din PlayerText: in Text:

Am reusit pana la urma doar ca nu se modifica textdraw-ul viteaza, benzina, masina incuiata descuiata ma poti ajuta cu asta pls?

Edited by cobalt_thekiller
UPDATE
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.