(17/08/2023 10:02)White_Blue Escreveu:aqui esta(16/08/2023 18:49)GreeN_ Escreveu:(16/08/2023 18:35)White_Blue Escreveu: Primeira coisa: Verifique se o loop está correto, ao invés de fazer usando valores fixos, use o sizeof para pegar o tamanho da array das textdraws.
Por exemplo:
Código PHP:for(new i = 0; i < sizeof(progressbar); i++) TextDrawHideForPlayer(playerid, progressbar[i]);
Não é isso ja tentei e ainda continua
(16/08/2023 18:35)White_Blue Escreveu: Primeira coisa: Verifique se o loop está correto, ao invés de fazer usando valores fixos, use o sizeof para pegar o tamanho da array das textdraws.
Por exemplo:
Código PHP:for(new i = 0; i < sizeof(progressbar); i++) TextDrawHideForPlayer(playerid, progressbar[i]);
se poder me ajudar vou agradecer muito porque sinceramente não sei oque esta acontecendo
Verifique se a textdraw está sendo criada corretamente, se possível, mande o código da criação da textdraw aqui.
Código PHP:
progressbar[1] = TextDrawCreate(111.250000, 366.296661, "box");
TextDrawLetterSize(progressbar[1], 0.000000, 3.166666);
TextDrawTextSize(progressbar[1], 219.000000, 0.000000);
TextDrawAlignment(progressbar[1], 1);
TextDrawColor(progressbar[1], -1);
TextDrawUseBox(progressbar[1], 1);
TextDrawBoxColor(progressbar[1], 269488383);
TextDrawSetShadow(progressbar[1], 0);
TextDrawBackgroundColor(progressbar[1], 255);
TextDrawFont(progressbar[1], 1);
TextDrawSetProportional(progressbar[1], 1);
progressbar[2] = TextDrawCreate(210.833374, 358.259307, "LD_BEAT:chit");
TextDrawTextSize(progressbar[2], 11.000000, 16.000000);
TextDrawAlignment(progressbar[2], 1);
TextDrawColor(progressbar[2], 269488383);
TextDrawSetShadow(progressbar[2], 0);
TextDrawBackgroundColor(progressbar[2], 255);
TextDrawFont(progressbar[2], 4);
TextDrawSetProportional(progressbar[2], 0);
progressbar[3] = TextDrawCreate(107.916702, 358.259338, "LD_BEAT:chit");
TextDrawTextSize(progressbar[3], 11.000000, 16.000000);
TextDrawAlignment(progressbar[3], 1);
TextDrawColor(progressbar[3], 269488383);
TextDrawSetShadow(progressbar[3], 0);
TextDrawBackgroundColor(progressbar[3], 255);
TextDrawFont(progressbar[3], 4);
TextDrawSetProportional(progressbar[3], 0);
progressbar[4] = TextDrawCreate(107.916709, 386.259368, "LD_BEAT:chit");
TextDrawTextSize(progressbar[4], 11.000000, 16.000000);
TextDrawAlignment(progressbar[4], 1);
TextDrawColor(progressbar[4], 269488383);
TextDrawSetShadow(progressbar[4], 0);
TextDrawBackgroundColor(progressbar[4], 255);
TextDrawFont(progressbar[4], 4);
TextDrawSetProportional(progressbar[4], 0);
progressbar[5] = TextDrawCreate(210.833435, 386.259277, "LD_BEAT:chit");
TextDrawTextSize(progressbar[5], 11.000000, 16.000000);
TextDrawAlignment(progressbar[5], 1);
TextDrawColor(progressbar[5], 269488383);
TextDrawSetShadow(progressbar[5], 0);
TextDrawBackgroundColor(progressbar[5], 255);
TextDrawFont(progressbar[5], 4);
TextDrawSetProportional(progressbar[5], 0);
progressbar[6] = TextDrawCreate(115.833259, 367.851837, "Voce_esta_pescando...");
TextDrawLetterSize(progressbar[6], 0.150000, 0.635555);
TextDrawAlignment(progressbar[6], 1);
TextDrawColor(progressbar[6], 1162167807);
TextDrawSetShadow(progressbar[6], 0);
TextDrawBackgroundColor(progressbar[6], 255);
TextDrawFont(progressbar[6], 1);
TextDrawSetProportional(progressbar[6], 1);
progressbar[7] = TextDrawCreate(115.833351, 378.740814, "box");
TextDrawLetterSize(progressbar[7], 0.000000, 1.083330);
TextDrawTextSize(progressbar[7], 212.000000, 0.000000);
TextDrawAlignment(progressbar[7], 1);
TextDrawColor(progressbar[7], -1);
TextDrawUseBox(progressbar[7], 1);
TextDrawBoxColor(progressbar[7], 623191551);
TextDrawSetShadow(progressbar[7], 0);
TextDrawBackgroundColor(progressbar[7], 255);
TextDrawFont(progressbar[7], 1);
TextDrawSetProportional(progressbar[7], 1);
progressbar[8] = TextDrawCreate(117.500038, 381.333404, "box");
TextDrawLetterSize(progressbar[8], 0.000000, 0.416664);
TextDrawTextSize(progressbar[8], 210.000000, 0.000000);
TextDrawAlignment(progressbar[8], 1);
TextDrawColor(progressbar[8], 269488383);
TextDrawUseBox(progressbar[8], 1);
TextDrawBoxColor(progressbar[8], 269488383);
TextDrawSetShadow(progressbar[8], 0);
TextDrawBackgroundColor(progressbar[8], 255);
TextDrawFont(progressbar[8], 1);
TextDrawSetProportional(progressbar[8], 1);
progressbar[9] = TextDrawCreate(161.666595, 379.259246, "...");
TextDrawLetterSize(progressbar[9], 0.150000, 0.635555);
TextDrawAlignment(progressbar[9], 1);
TextDrawColor(progressbar[9], -1);
TextDrawSetShadow(progressbar[9], 0);
TextDrawBackgroundColor(progressbar[9], 255);
TextDrawFont(progressbar[9], 2);
TextDrawSetProportional(progressbar[9], 1);
progressbar[10] = TextDrawCreate(117.500038, 381.333404, "PROGRESSBAR");
TextDrawLetterSize(progressbar[10], 0.000000, 0.416665);
TextDrawTextSize(progressbar[10], 207.000000, 0.000000);
TextDrawAlignment(progressbar[10], 1);
TextDrawColor(progressbar[10], 269488383);
TextDrawUseBox(progressbar[10], 1);
TextDrawBoxColor(progressbar[10], -1952907009);
TextDrawSetShadow(progressbar[10], 0);
TextDrawBackgroundColor(progressbar[10], 255);
TextDrawFont(progressbar[10], 1);
TextDrawSetProportional(progressbar[10], 1);