Portal SAMP
[Pedido] Por favor tenta desbugar o velocímetro da gm Rede Play fox - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Pedido] Por favor tenta desbugar o velocímetro da gm Rede Play fox (/showthread.php?tid=2560)



Por favor tenta desbugar o velocímetro da gm Rede Play fox - Joabson Santos - 11/07/2022

Eu queria que vcs mim ajudasse a desbugar o Velocimetro da gm Rede play fox eu vou citar os nomes dos bugs abaixo

1 bug: o primeiro bug é que quando eu pego um carro, tipo o infernus aparece a imagem do subaru no velocímetro e tinha que aparecer a imagem do infernus, resumindo todos veiculos que eu pego só aprece a imagem do subaru


2 bug: o segundo bug é que ele não mostra a porcentagem da lataria do veiculo, quem já jogou na gm do brasil play shox sabe qual é velocímetro que eu tô falando, eu vou mandar o código do velocímetro aqui! Aí vocês se quiserem vcs fazem o teste lá na gm de vcs


O CÓDIGO DA TEXTDRAW DO VELOCÍMETRO BUGADO?? EU VOU MANDAR A FOTO DE COMO ELE  TA BUGADO O LINK DA FOTO VAI ESTAR LOGO ABAIXO DO CÓDIGO TEXTDRAW DO VELOCÍMETRO 
   

stock Mostrarvelocimetro(playerid)
{
    //textplayer velocimetro
PlayerVeloci1[playerid][0] = CreatePlayerTextDraw(playerid, 151.669860, 347.683074, "box");
PlayerTextDrawLetterSize(playerid, PlayerVeloci1[playerid][0], 0.000000, 0.020499);
PlayerTextDrawTextSize(playerid, PlayerVeloci1[playerid][0], 254.000000, 0.000000);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][0], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][0], -1);
PlayerTextDrawUseBox(playerid, PlayerVeloci1[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, PlayerVeloci1[playerid][0], 122);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][0], 255);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][0], 1);

PlayerVeloci1[playerid][1] = CreatePlayerTextDraw(playerid, 257.998260, 316.182861, "box");
PlayerTextDrawLetterSize(playerid, PlayerVeloci1[playerid][1], 0.000000, 8.282477);
PlayerTextDrawTextSize(playerid, PlayerVeloci1[playerid][1], 258.000000, 0.000000);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][1], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][1], -1);
PlayerTextDrawUseBox(playerid, PlayerVeloci1[playerid][1], 1);
PlayerTextDrawBoxColor(playerid, PlayerVeloci1[playerid][1], 122);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][1], 255);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][1], 1);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][1], 1);

PlayerVeloci1[playerid][2] = CreatePlayerTextDraw(playerid, 150.508041, 335.150512, "Imagem do Veiculo");
PlayerTextDrawLetterSize(playerid, PlayerVeloci1[playerid][2], 0.257001, 1.139999);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][2], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][2], -1061109505);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][2], 1);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][2], 255);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][2], 1);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][2], 1);

PlayerVeloci1[playerid][3] = CreatePlayerTextDraw(playerid, 191.442153, 283.916503, "");
PlayerTextDrawTextSize(playerid, PlayerVeloci1[playerid][3], 90.000000, 90.000000);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][3], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][3], -1);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][3], 572649728);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][3], 5);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][3], 0);
PlayerTextDrawSetPreviewModel(playerid, PlayerVeloci1[playerid][3], 560);
PlayerTextDrawSetPreviewRot(playerid, PlayerVeloci1[playerid][3], 327.000000, 360.000000, 302.000000, 1.825513);
PlayerTextDrawSetPreviewVehCol(playerid, PlayerVeloci1[playerid][3], 1, 1);

PlayerVeloci1[playerid][4] = CreatePlayerTextDraw(playerid, 148.949081, 346.866363, "100");
PlayerTextDrawLetterSize(playerid, PlayerVeloci1[playerid][4], 0.444999, 2.269999);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][4], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][4], -1);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][4], 255);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][4], 2);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][4], 1);

PlayerVeloci1[playerid][5] = CreatePlayerTextDraw(playerid, 165.463729, 366.033905, "Km/h");
PlayerTextDrawLetterSize(playerid, PlayerVeloci1[playerid][5], 0.239998, 1.009999);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][5], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][5], -1061109505);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][5], 1);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][5], 255);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][5], 1);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][5], 1);

PlayerVeloci1[playerid][6] = CreatePlayerTextDraw(playerid, 195.799804, 362.033386, "100");
PlayerTextDrawLetterSize(playerid, PlayerVeloci1[playerid][6], 0.256051, 1.378332);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][6], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][6], -5963521);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][6], 0);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][6], 255);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][6], 1);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][6], 1);

PlayerVeloci1[playerid][7] = CreatePlayerTextDraw(playerid, 213.514556, 361.149780, "Litros");
PlayerTextDrawLetterSize(playerid, PlayerVeloci1[playerid][7], 0.262931, 1.477499);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][7], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][7], -5963521);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][7], 0);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][7], 255);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][7], 1);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][7], 1);

PlayerVeloci1[playerid][8] = CreatePlayerTextDraw(playerid, 189.847564, 320.416961, "");
PlayerTextDrawTextSize(playerid, PlayerVeloci1[playerid][8], 112.000000, 85.000000);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][8], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][8], -1);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][8], 0);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][8], 572649728);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][8], 5);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][8], 0);
PlayerTextDrawSetPreviewModel(playerid, PlayerVeloci1[playerid][8], 1676);
PlayerTextDrawSetPreviewRot(playerid, PlayerVeloci1[playerid][8], 0.000000, 0.000000, 0.000000, 2.925219);

PlayerVeloci1[playerid][9] = CreatePlayerTextDraw(playerid, 149.295639, 376.266967, "Lataria:");
PlayerTextDrawLetterSize(playerid, PlayerVeloci1[playerid][9], 0.274001, 1.115833);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][9], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][9], -1);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][9], 0);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][9], 255);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][9], 1);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][9], 1);

PlayerVeloci1[playerid][10] = CreatePlayerTextDraw(playerid, 149.295639, 386.767608, "Blindagem:");
PlayerTextDrawLetterSize(playerid, PlayerVeloci1[playerid][10], 0.250533, 1.039999);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][10], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][10], -1);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][10], 0);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][10], 255);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][10], 1);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][10], 1);

PlayerVeloci1[playerid][11] = CreatePlayerTextDraw(playerid, 193.950347, 387.700347, "0%");
PlayerTextDrawLetterSize(playerid, PlayerVeloci1[playerid][11], 0.237001, 0.990000);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][11], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][11], -1);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][11], 0);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][11], 255);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][11], 1);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][11], 1);

PlayerVeloci1[playerid][12] = CreatePlayerTextDraw(playerid, 183.142852, 377.366668, "100%");
PlayerTextDrawLetterSize(playerid, PlayerVeloci1[playerid][12], 0.212531, 1.005833);
PlayerTextDrawAlignment(playerid, PlayerVeloci1[playerid][12], 1);
PlayerTextDrawColor(playerid, PlayerVeloci1[playerid][12], -1);
PlayerTextDrawSetShadow(playerid, PlayerVeloci1[playerid][12], 0);
PlayerTextDrawBackgroundColor(playerid, PlayerVeloci1[playerid][12], 255);
PlayerTextDrawFont(playerid, PlayerVeloci1[playerid][12], 1);
PlayerTextDrawSetProportional(playerid, PlayerVeloci1[playerid][12], 1);


LINK DA FOTO DO VELOCÍMETRO BUGADO
    
https://imgur.com/a/8KVzAeA


AGORA EU VOU MANDAR DE COMO ESSE VELOCÍMETRO DESBUGADO! LEMBRANDO A FOTO QUE EU VOU MANDAR DO VELOCÍMETRO DESBUGADO E DA GM DO BRASIL PLAY SHOX, SO QUE EU TENHO ESSE VELOCÍMETRO SO QUE ELE TA BUGADO COMO EU FALEI,VOU MANDAR A FOTO.


LINK DA FOTO DO VELOCIMETRO DESBUGADO DO BRASIL PLAY SHOX
     ????
https://imgur.com/a/9HbeyeU



MIM AJUDEM POR FAVOR EU IMPLORO


RE: Por favor tenta desbugar o velocímetro da gm Rede Play fox - CoelhaO_LokaO - 11/07/2022

Não vi nada bugado, TEXTDRAW não vai fazer a função sozinha para você, DICA: tem que criar a função de pega id do carro e joga no modelo do carro do falta as funções meu amigo.

Não e porque tu crio coloco as textdraw que vai mostrar o carro tem que desenvolver a função para isso. 


RE: Por favor tenta desbugar o velocímetro da gm Rede Play fox - k2bi_YT - 11/07/2022

Não é a texdraw que ta "bugada", basicamente ao mostrar o velocimetro, deve ter também a função de alterar a imagem do preview da textdraw

Procure onde vai estar mais ou menos assim: PlayerTextDrawShow(playerid, PlayerVeloci1[playerid][3]) algo do tipo...

Antes de essa função ser chamada (antes de aparecer para o jogador), coloque assim: PlayerTextDrawSetPreviewModel(playerid, PlayerVeloci1[playerid][3], GetPlayerVehicleModel(playerid));

E ai sim logo abaixo você usa o PlayerTextDrawShow(playerid, PlayerVeloci1[playerid][3])