[Ajuda] TextDraws nгo estгo aparecendo.
#1

Botei as textdraws em meu GM mais nгo aparecem

No topo do GM:
Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw15;
Na public OnGameModeInit():
Код:
Textdraw0 = TextDrawCreate(564.799804, 427.839904, "www.lostplayers.com.br");
TextDrawLetterSize(Textdraw0, 0.161199, 0.898128);
TextDrawTextSize(Textdraw0, -167.200027, -32.106647);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, -1);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 1);
TextDrawBackgroundColor(Textdraw0, 51);
TextDrawFont(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);

Textdraw1 = TextDrawCreate(567.199707, 412.906921, "LP RPG");
TextDrawLetterSize(Textdraw1, 0.528400, 1.786666);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, -1);
TextDrawSetShadow(Textdraw1, 0);
TextDrawSetOutline(Textdraw1, 1);
TextDrawBackgroundColor(Textdraw1, 51);
TextDrawFont(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);

Textdraw2 = TextDrawCreate(635.599731, 440.540100, "usebox");
TextDrawLetterSize(Textdraw2, 0.000000, -0.559629);
TextDrawTextSize(Textdraw2, 560.400085, 0.000000);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, 0);
TextDrawUseBox(Textdraw2, true);
TextDrawBoxColor(Textdraw2, -86);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, -40);
TextDrawBackgroundColor(Textdraw2, -86);
TextDrawFont(Textdraw2, 0);

Textdraw3 = TextDrawCreate(635.600097, 415.153381, "usebox");
TextDrawLetterSize(Textdraw3, 0.000000, -0.562592);
TextDrawTextSize(Textdraw3, 560.400085, 0.000000);
TextDrawAlignment(Textdraw3, 1);
TextDrawColor(Textdraw3, 0);
TextDrawUseBox(Textdraw3, true);
TextDrawBoxColor(Textdraw3, -86);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, 0);
TextDrawFont(Textdraw3, 0);

Textdraw4 = TextDrawCreate(569.599975, 401.706665, "~p~00:00:00");
TextDrawLetterSize(Textdraw4, 0.329997, 1.039999);
TextDrawAlignment(Textdraw4, 1);
TextDrawColor(Textdraw4, -1);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, 1);
TextDrawBackgroundColor(Textdraw4, 51);
TextDrawFont(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);

Textdraw5 = TextDrawCreate(637.199890, 365.873596, "usebox");
TextDrawLetterSize(Textdraw5, -0.024000, 0.828221);
TextDrawTextSize(Textdraw5, 558.799865, -35.839984);
TextDrawAlignment(Textdraw5, 1);
TextDrawColor(Textdraw5, 0);
TextDrawUseBox(Textdraw5, true);
TextDrawBoxColor(Textdraw5, 102);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetOutline(Textdraw5, 0);
TextDrawFont(Textdraw5, 0);

Textdraw6 = TextDrawCreate(563.999816, 335.253295, "hud:radar_burgershot");
TextDrawLetterSize(Textdraw6, 0.000000, 0.000000);
TextDrawTextSize(Textdraw6, 10.400016, 9.706650);
TextDrawAlignment(Textdraw6, 1);
TextDrawColor(Textdraw6, -1);
TextDrawSetShadow(Textdraw6, 0);
TextDrawSetOutline(Textdraw6, 0);
TextDrawFont(Textdraw6, 4);

Textdraw7 = TextDrawCreate(632.400024, 338.993347, "usebox");
TextDrawLetterSize(Textdraw7, 0.000000, 0.098145);
TextDrawTextSize(Textdraw7, 575.599975, 0.000000);
TextDrawAlignment(Textdraw7, 1);
TextDrawColor(Textdraw7, 0);
TextDrawUseBox(Textdraw7, true);
TextDrawBoxColor(Textdraw7, -1300819610);
TextDrawSetShadow(Textdraw7, 0);
TextDrawSetOutline(Textdraw7, 0);
TextDrawFont(Textdraw7, 0);

Textdraw8 = TextDrawCreate(563.743041, 351.506591, "hud:radar_datedrink");
TextDrawLetterSize(Textdraw8, 0.000000, 0.000000);
TextDrawTextSize(Textdraw8, 11.161904, 8.213338);
TextDrawAlignment(Textdraw8, 1);
TextDrawColor(Textdraw8, -1);
TextDrawSetShadow(Textdraw8, 0);
TextDrawSetOutline(Textdraw8, 0);
TextDrawFont(Textdraw8, 4);

Textdraw9 = TextDrawCreate(564.000183, 364.373321, "hud:radar_school");
TextDrawLetterSize(Textdraw9, 0.000000, 0.000000);
TextDrawTextSize(Textdraw9, 11.199997, 9.706661);
TextDrawAlignment(Textdraw9, 1);
TextDrawColor(Textdraw9, -1);
TextDrawSetShadow(Textdraw9, 0);
TextDrawSetOutline(Textdraw9, 0);
TextDrawFont(Textdraw9, 4);

Textdraw10 = TextDrawCreate(637.200012, 350.940124, "usebox");
TextDrawLetterSize(Textdraw10, 0.000000, 0.844811);
TextDrawTextSize(Textdraw10, 558.800048, 0.000000);
TextDrawAlignment(Textdraw10, 1);
TextDrawColor(Textdraw10, 0);
TextDrawUseBox(Textdraw10, true);
TextDrawBoxColor(Textdraw10, 102);
TextDrawSetShadow(Textdraw10, 0);
TextDrawSetOutline(Textdraw10, 0);
TextDrawFont(Textdraw10, 0);

Textdraw11 = TextDrawCreate(637.200012, 334.513427, "usebox");
TextDrawLetterSize(Textdraw11, 0.000000, 1.010740);
TextDrawTextSize(Textdraw11, 558.799987, 0.000000);
TextDrawAlignment(Textdraw11, 1);
TextDrawColor(Textdraw11, -1370419439);
TextDrawUseBox(Textdraw11, true);
TextDrawBoxColor(Textdraw11, 102);
TextDrawSetShadow(Textdraw11, 0);
TextDrawSetOutline(Textdraw11, 0);
TextDrawFont(Textdraw11, 0);

Textdraw12 = TextDrawCreate(581.873107, 353.926757, "usebox");
TextDrawLetterSize(Textdraw12, -0.020800, 0.121375);
TextDrawTextSize(Textdraw12, 625.999877, 32.106666);
TextDrawAlignment(Textdraw12, 1);
TextDrawColor(Textdraw12, 0);
TextDrawUseBox(Textdraw12, true);
TextDrawBoxColor(Textdraw12, -1040188058);
TextDrawSetShadow(Textdraw12, 0);
TextDrawSetOutline(Textdraw12, 0);
TextDrawFont(Textdraw12, 0);

Textdraw13 = TextDrawCreate(632.399780, 368.859954, "usebox");
TextDrawLetterSize(Textdraw13, -0.005599, 0.150409);
TextDrawTextSize(Textdraw13, 575.600036, 5.973331);
TextDrawAlignment(Textdraw13, 1);
TextDrawColor(Textdraw13, 0);
TextDrawUseBox(Textdraw13, true);
TextDrawBoxColor(Textdraw13, -1441064090);
TextDrawSetShadow(Textdraw13, 0);
TextDrawSetOutline(Textdraw13, 0);
TextDrawFont(Textdraw13, 0);

Textdraw14 = TextDrawCreate(464.799926, 333.013153, "~p~Level: ~w~20~n~~p~Estudo: ~w~10~n~~p~Gold's: ~w~0~n~~p~Tipo: ~w~VIP");
TextDrawLetterSize(Textdraw14, 0.428398, 1.189332);
TextDrawAlignment(Textdraw14, 1);
TextDrawColor(Textdraw14, -1);
TextDrawSetShadow(Textdraw14, 0);
TextDrawSetOutline(Textdraw14, 1);
TextDrawBackgroundColor(Textdraw14, 51);
TextDrawFont(Textdraw14, 1);
TextDrawSetProportional(Textdraw14, 1);

Textdraw15 = TextDrawCreate(598.400024, 314.346679, "~p~UP:~w~00:00");
TextDrawLetterSize(Textdraw15, 0.330000, 1.450665);
TextDrawAlignment(Textdraw15, 2);
TextDrawColor(Textdraw15, -1);
TextDrawSetShadow(Textdraw15, 0);
TextDrawSetOutline(Textdraw15, 1);
TextDrawBackgroundColor(Textdraw15, 51);
TextDrawFont(Textdraw15, 1);
TextDrawSetProportional(Textdraw15, 1);
e isso na public OnPlayerSpawn(playerid)
Код:
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawShowForPlayer(playerid, Textdraw8);
TextDrawShowForPlayer(playerid, Textdraw9);
TextDrawShowForPlayer(playerid, Textdraw10);
TextDrawShowForPlayer(playerid, Textdraw11);
TextDrawShowForPlayer(playerid, Textdraw12);
TextDrawShowForPlayer(playerid, Textdraw13);
TextDrawShowForPlayer(playerid, Textdraw14);
TextDrawShowForPlayer(playerid, Textdraw15);
Quando entro no servidor elas nгo aparecem =[
Alguem ajuda plz
Reply
#2

Faзa um debug, e visualize se esta chegando ai, ou se ja parou de funcionar antes
Reply
#3

Oi faзa desse modo economiza linha
@edit
editei o code tinha colocado return no loop, amigo vocк ja tem outras textdraws? pode ser conflito ou algo do tipo
pawn Код:
//VARIAVEL
new Text:Textdraw[16];

// ONGAMEMODE
Textdraw[0] = TextDrawCreate(564.799804, 427.839904, "www.lostplayers.com.br");
TextDrawLetterSize(Textdraw[0], 0.161199, 0.898128);
TextDrawTextSize(Textdraw[0], -167.200027, -32.106647);
TextDrawAlignment(Textdraw[0], 1);
TextDrawColor(Textdraw[0], -1);
TextDrawSetShadow(Textdraw[0], 0);
TextDrawSetOutline(Textdraw[0], 1);
TextDrawBackgroundColor(Textdraw[0], 51);
TextDrawFont(Textdraw[0], 1);
TextDrawSetProportional(Textdraw[0], 1);

Textdraw[1] = TextDrawCreate(567.199707, 412.906921, "LP RPG");
TextDrawLetterSize(Textdraw[1], 0.528400, 1.786666);
TextDrawAlignment(Textdraw[1], 1);
TextDrawColor(Textdraw[1], -1);
TextDrawSetShadow(Textdraw[1], 0);
TextDrawSetOutline(Textdraw[1], 1);
TextDrawBackgroundColor(Textdraw[1], 51);
TextDrawFont(Textdraw[1], 1);
TextDrawSetProportional(Textdraw[1], 1);

Textdraw[2] = TextDrawCreate(635.599731, 440.540100, "usebox");
TextDrawLetterSize(Textdraw[2], 0.000000, -0.559629);
TextDrawTextSize(Textdraw[2], 560.400085, 0.000000);
TextDrawAlignment(Textdraw[2], 1);
TextDrawColor(Textdraw[2], 0);
TextDrawUseBox(Textdraw[2], true);
TextDrawBoxColor(Textdraw[2], -86);
TextDrawSetShadow(Textdraw[2], 0);
TextDrawSetOutline(Textdraw[2], -40);
TextDrawBackgroundColor(Textdraw[2], -86);
TextDrawFont(Textdraw[2], 0);

Textdraw[3] = TextDrawCreate(635.600097, 415.153381, "usebox");
TextDrawLetterSize(Textdraw[3], 0.000000, -0.562592);
TextDrawTextSize(Textdraw[3], 560.400085, 0.000000);
TextDrawAlignment(Textdraw[3], 1);
TextDrawColor(Textdraw[3], 0);
TextDrawUseBox(Textdraw[3], true);
TextDrawBoxColor(Textdraw[3], -86);
TextDrawSetShadow(Textdraw[3], 0);
TextDrawSetOutline(Textdraw[3], 0);
TextDrawFont(Textdraw[3], 0);

Textdraw[4] = TextDrawCreate(569.599975, 401.706665, "~p~00:00:00");
TextDrawLetterSize(Textdraw[4], 0.329997, 1.039999);
TextDrawAlignment(Textdraw[4], 1);
TextDrawColor(Textdraw[4], -1);
TextDrawSetShadow(Textdraw[4], 0);
TextDrawSetOutline(Textdraw[4], 1);
TextDrawBackgroundColor(Textdraw[4], 51);
TextDrawFont(Textdraw[4], 1);
TextDrawSetProportional(Textdraw[4], 1);

Textdraw[5] = TextDrawCreate(637.199890, 365.873596, "usebox");
TextDrawLetterSize(Textdraw[5], -0.024000, 0.828221);
TextDrawTextSize(Textdraw[5], 558.799865, -35.839984);
TextDrawAlignment(Textdraw[5], 1);
TextDrawColor(Textdraw[5], 0);
TextDrawUseBox(Textdraw[5], true);
TextDrawBoxColor(Textdraw[5], 102);
TextDrawSetShadow(Textdraw[5], 0);
TextDrawSetOutline(Textdraw[5], 0);
TextDrawFont(Textdraw[5], 0);

Textdraw[6] = TextDrawCreate(563.999816, 335.253295, "hud:radar_burgershot");
TextDrawLetterSize(Textdraw[6], 0.000000, 0.000000);
TextDrawTextSize(Textdraw[6], 10.400016, 9.706650);
TextDrawAlignment(Textdraw[6], 1);
TextDrawColor(Textdraw[6], -1);
TextDrawSetShadow(Textdraw[6], 0);
TextDrawSetOutline(Textdraw[6], 0);
TextDrawFont(Textdraw[6], 4);

Textdraw[7] = TextDrawCreate(632.400024, 338.993347, "usebox");
TextDrawLetterSize(Textdraw[7], 0.000000, 0.098145);
TextDrawTextSize(Textdraw[7], 575.599975, 0.000000);
TextDrawAlignment(Textdraw[7], 1);
TextDrawColor(Textdraw[7], 0);
TextDrawUseBox(Textdraw[7], true);
TextDrawBoxColor(Textdraw[7], -1300819610);
TextDrawSetShadow(Textdraw[7], 0);
TextDrawSetOutline(Textdraw[7], 0);
TextDrawFont(Textdraw[7], 0);

Textdraw[8] = TextDrawCreate(563.743041, 351.506591, "hud:radar_datedrink");
TextDrawLetterSize(Textdraw[8], 0.000000, 0.000000);
TextDrawTextSize(Textdraw[8], 11.161904, 8.213338);
TextDrawAlignment(Textdraw[8], 1);
TextDrawColor(Textdraw[8], -1);
TextDrawSetShadow(Textdraw[8], 0);
TextDrawSetOutline(Textdraw[8], 0);
TextDrawFont(Textdraw[8], 4);

Textdraw[9] = TextDrawCreate(564.000183, 364.373321, "hud:radar_school");
TextDrawLetterSize(Textdraw[9], 0.000000, 0.000000);
TextDrawTextSize(Textdraw[9], 11.199997, 9.706661);
TextDrawAlignment(Textdraw[9], 1);
TextDrawColor(Textdraw[9], -1);
TextDrawSetShadow(Textdraw[9], 0);
TextDrawSetOutline(Textdraw[9], 0);
TextDrawFont(Textdraw[9], 4);

Textdraw[10] = TextDrawCreate(637.200012, 350.940124, "usebox");
TextDrawLetterSize(Textdraw[10], 0.000000, 0.844811);
TextDrawTextSize(Textdraw[10], 558.800048, 0.000000);
TextDrawAlignment(Textdraw[10], 1);
TextDrawColor(Textdraw[10], 0);
TextDrawUseBox(Textdraw[10], true);
TextDrawBoxColor(Textdraw[10], 102);
TextDrawSetShadow(Textdraw[10], 0);
TextDrawSetOutline(Textdraw[10], 0);
TextDrawFont(Textdraw[10], 0);

Textdraw[11] = TextDrawCreate(637.200012, 334.513427, "usebox");


TextDrawLetterSize(Textdraw[11], 0.000000, 1.010740);
TextDrawTextSize(Textdraw[11], 558.799987, 0.000000);
TextDrawAlignment(Textdraw[11], 1);
TextDrawColor(Textdraw[11], -1370419439);
TextDrawUseBox(Textdraw[11], true);
TextDrawBoxColor(Textdraw[11], 102);
TextDrawSetShadow(Textdraw[11], 0);
TextDrawSetOutline(Textdraw[11], 0);
TextDrawFont(Textdraw[11], 0);

Textdraw[12] = TextDrawCreate(581.873107, 353.926757, "usebox");
TextDrawLetterSize(Textdraw[12], -0.020800, 0.121375);
TextDrawTextSize(Textdraw[12], 625.999877, 32.106666);
TextDrawAlignment(Textdraw[12], 1);
TextDrawColor(Textdraw[12], 0);
TextDrawUseBox(Textdraw[12], true);
TextDrawBoxColor(Textdraw[12], -1040188058);
TextDrawSetShadow(Textdraw[12], 0);
TextDrawSetOutline(Textdraw[12], 0);
TextDrawFont(Textdraw[12], 0);

Textdraw[13] = TextDrawCreate(632.399780, 368.859954, "usebox");
TextDrawLetterSize(Textdraw[13], -0.005599, 0.150409);
TextDrawTextSize(Textdraw[13], 575.600036, 5.973331);
TextDrawAlignment(Textdraw[13], 1);
TextDrawColor(Textdraw[13], 0);
TextDrawUseBox(Textdraw[13], true);
TextDrawBoxColor(Textdraw[13], -1441064090);
TextDrawSetShadow(Textdraw[13], 0);
TextDrawSetOutline(Textdraw[13], 0);
TextDrawFont(Textdraw[13], 0);

Textdraw[14] = TextDrawCreate(464.799926, 333.013153, "~p~Level: ~w~20~n~~p~Estudo: ~w~10~n~~p~Gold's: ~w~0~n~~p~Tipo: ~w~VIP");
TextDrawLetterSize(Textdraw[14], 0.428398, 1.189332);
TextDrawAlignment(Textdraw[14], 1);
TextDrawColor(Textdraw[14], -1);
TextDrawSetShadow(Textdraw[14], 0);
TextDrawSetOutline(Textdraw[14], 1);
TextDrawBackgroundColor(Textdraw[14], 51);
TextDrawFont(Textdraw[14], 1);
TextDrawSetProportional(Textdraw[14], 1);

Textdraw[15] = TextDrawCreate(598.400024, 314.346679, "~p~UP:~w~00:00");
TextDrawLetterSize(Textdraw[15], 0.330000, 1.450665);
TextDrawAlignment(Textdraw[15], 2);
TextDrawColor(Textdraw[15], -1);
TextDrawSetShadow(Textdraw[15], 0);
TextDrawSetOutline(Textdraw[15], 1);
TextDrawBackgroundColor(Textdraw[15], 51);
TextDrawFont(Textdraw[15], 1);
TextDrawSetProportional(Textdraw[15], 1);

//ONPLAYERSPAWN
for(new i = 0; i < sizeof(Textdraw); i++)
{
   
    TextDrawShowForPlayer(playerid, Textdraw[i]);
}
Reply
#4

Quote:
Originally Posted by Whoo
Посмотреть сообщение
Oi faзa desse modo economiza linha
pawn Код:
//VARIAVEL
new Text:Textdraw[16];

// ONGAMEMODE
Textdraw[0] = TextDrawCreate(564.799804, 427.839904, "www.lostplayers.com.br");
TextDrawLetterSize(Textdraw[0], 0.161199, 0.898128);
TextDrawTextSize(Textdraw[0], -167.200027, -32.106647);
TextDrawAlignment(Textdraw[0], 1);
TextDrawColor(Textdraw[0], -1);
TextDrawSetShadow(Textdraw[0], 0);
TextDrawSetOutline(Textdraw[0], 1);
TextDrawBackgroundColor(Textdraw[0], 51);
TextDrawFont(Textdraw[0], 1);
TextDrawSetProportional(Textdraw[0], 1);

Textdraw[1] = TextDrawCreate(567.199707, 412.906921, "LP RPG");
TextDrawLetterSize(Textdraw[1], 0.528400, 1.786666);
TextDrawAlignment(Textdraw[1], 1);
TextDrawColor(Textdraw[1], -1);
TextDrawSetShadow(Textdraw[1], 0);
TextDrawSetOutline(Textdraw[1], 1);
TextDrawBackgroundColor(Textdraw[1], 51);
TextDrawFont(Textdraw[1], 1);
TextDrawSetProportional(Textdraw[1], 1);

Textdraw[2] = TextDrawCreate(635.599731, 440.540100, "usebox");
TextDrawLetterSize(Textdraw[2], 0.000000, -0.559629);
TextDrawTextSize(Textdraw[2], 560.400085, 0.000000);
TextDrawAlignment(Textdraw[2], 1);
TextDrawColor(Textdraw[2], 0);
TextDrawUseBox(Textdraw[2], true);
TextDrawBoxColor(Textdraw[2], -86);
TextDrawSetShadow(Textdraw[2], 0);
TextDrawSetOutline(Textdraw[2], -40);
TextDrawBackgroundColor(Textdraw[2], -86);
TextDrawFont(Textdraw[2], 0);

Textdraw[3] = TextDrawCreate(635.600097, 415.153381, "usebox");
TextDrawLetterSize(Textdraw[3], 0.000000, -0.562592);
TextDrawTextSize(Textdraw[3], 560.400085, 0.000000);
TextDrawAlignment(Textdraw[3], 1);
TextDrawColor(Textdraw[3], 0);
TextDrawUseBox(Textdraw[3], true);
TextDrawBoxColor(Textdraw[3], -86);
TextDrawSetShadow(Textdraw[3], 0);
TextDrawSetOutline(Textdraw[3], 0);
TextDrawFont(Textdraw[3], 0);

Textdraw[4] = TextDrawCreate(569.599975, 401.706665, "~p~00:00:00");
TextDrawLetterSize(Textdraw[4], 0.329997, 1.039999);
TextDrawAlignment(Textdraw[4], 1);
TextDrawColor(Textdraw[4], -1);
TextDrawSetShadow(Textdraw[4], 0);
TextDrawSetOutline(Textdraw[4], 1);
TextDrawBackgroundColor(Textdraw[4], 51);
TextDrawFont(Textdraw[4], 1);
TextDrawSetProportional(Textdraw[4], 1);

Textdraw[5] = TextDrawCreate(637.199890, 365.873596, "usebox");
TextDrawLetterSize(Textdraw[5], -0.024000, 0.828221);
TextDrawTextSize(Textdraw[5], 558.799865, -35.839984);
TextDrawAlignment(Textdraw[5], 1);
TextDrawColor(Textdraw[5], 0);
TextDrawUseBox(Textdraw[5], true);
TextDrawBoxColor(Textdraw[5], 102);
TextDrawSetShadow(Textdraw[5], 0);
TextDrawSetOutline(Textdraw[5], 0);
TextDrawFont(Textdraw[5], 0);

Textdraw[6] = TextDrawCreate(563.999816, 335.253295, "hud:radar_burgershot");
TextDrawLetterSize(Textdraw[6], 0.000000, 0.000000);
TextDrawTextSize(Textdraw[6], 10.400016, 9.706650);
TextDrawAlignment(Textdraw[6], 1);
TextDrawColor(Textdraw[6], -1);
TextDrawSetShadow(Textdraw[6], 0);
TextDrawSetOutline(Textdraw[6], 0);
TextDrawFont(Textdraw[6], 4);

Textdraw[7] = TextDrawCreate(632.400024, 338.993347, "usebox");
TextDrawLetterSize(Textdraw[7], 0.000000, 0.098145);
TextDrawTextSize(Textdraw[7], 575.599975, 0.000000);
TextDrawAlignment(Textdraw[7], 1);
TextDrawColor(Textdraw[7], 0);
TextDrawUseBox(Textdraw[7], true);
TextDrawBoxColor(Textdraw[7], -1300819610);
TextDrawSetShadow(Textdraw[7], 0);
TextDrawSetOutline(Textdraw[7], 0);
TextDrawFont(Textdraw[7], 0);

Textdraw[8] = TextDrawCreate(563.743041, 351.506591, "hud:radar_datedrink");
TextDrawLetterSize(Textdraw[8], 0.000000, 0.000000);
TextDrawTextSize(Textdraw[8], 11.161904, 8.213338);
TextDrawAlignment(Textdraw[8], 1);
TextDrawColor(Textdraw[8], -1);
TextDrawSetShadow(Textdraw[8], 0);
TextDrawSetOutline(Textdraw[8], 0);
TextDrawFont(Textdraw[8], 4);

Textdraw[9] = TextDrawCreate(564.000183, 364.373321, "hud:radar_school");
TextDrawLetterSize(Textdraw[9], 0.000000, 0.000000);
TextDrawTextSize(Textdraw[9], 11.199997, 9.706661);
TextDrawAlignment(Textdraw[9], 1);
TextDrawColor(Textdraw[9], -1);
TextDrawSetShadow(Textdraw[9], 0);
TextDrawSetOutline(Textdraw[9], 0);
TextDrawFont(Textdraw[9], 4);

Textdraw[10] = TextDrawCreate(637.200012, 350.940124, "usebox");
TextDrawLetterSize(Textdraw[10], 0.000000, 0.844811);
TextDrawTextSize(Textdraw[10], 558.800048, 0.000000);
TextDrawAlignment(Textdraw[10], 1);
TextDrawColor(Textdraw[10], 0);
TextDrawUseBox(Textdraw[10], true);
TextDrawBoxColor(Textdraw[10], 102);
TextDrawSetShadow(Textdraw[10], 0);
TextDrawSetOutline(Textdraw[10], 0);
TextDrawFont(Textdraw[10], 0);

Textdraw[11] = TextDrawCreate(637.200012, 334.513427, "usebox");


TextDrawLetterSize(Textdraw[11], 0.000000, 1.010740);
TextDrawTextSize(Textdraw[11], 558.799987, 0.000000);
TextDrawAlignment(Textdraw[11], 1);
TextDrawColor(Textdraw[11], -1370419439);
TextDrawUseBox(Textdraw[11], true);
TextDrawBoxColor(Textdraw[11], 102);
TextDrawSetShadow(Textdraw[11], 0);
TextDrawSetOutline(Textdraw[11], 0);
TextDrawFont(Textdraw[11], 0);

Textdraw[12] = TextDrawCreate(581.873107, 353.926757, "usebox");
TextDrawLetterSize(Textdraw[12], -0.020800, 0.121375);
TextDrawTextSize(Textdraw[12], 625.999877, 32.106666);
TextDrawAlignment(Textdraw[12], 1);
TextDrawColor(Textdraw[12], 0);
TextDrawUseBox(Textdraw[12], true);
TextDrawBoxColor(Textdraw[12], -1040188058);
TextDrawSetShadow(Textdraw[12], 0);
TextDrawSetOutline(Textdraw[12], 0);
TextDrawFont(Textdraw[12], 0);

Textdraw[13] = TextDrawCreate(632.399780, 368.859954, "usebox");
TextDrawLetterSize(Textdraw[13], -0.005599, 0.150409);
TextDrawTextSize(Textdraw[13], 575.600036, 5.973331);
TextDrawAlignment(Textdraw[13], 1);
TextDrawColor(Textdraw[13], 0);
TextDrawUseBox(Textdraw[13], true);
TextDrawBoxColor(Textdraw[13], -1441064090);
TextDrawSetShadow(Textdraw[13], 0);
TextDrawSetOutline(Textdraw[13], 0);
TextDrawFont(Textdraw[13], 0);

Textdraw[14] = TextDrawCreate(464.799926, 333.013153, "~p~Level: ~w~20~n~~p~Estudo: ~w~10~n~~p~Gold's: ~w~0~n~~p~Tipo: ~w~VIP");
TextDrawLetterSize(Textdraw[14], 0.428398, 1.189332);
TextDrawAlignment(Textdraw[14], 1);
TextDrawColor(Textdraw[14], -1);
TextDrawSetShadow(Textdraw[14], 0);
TextDrawSetOutline(Textdraw[14], 1);
TextDrawBackgroundColor(Textdraw[14], 51);
TextDrawFont(Textdraw[14], 1);
TextDrawSetProportional(Textdraw[14], 1);

Textdraw[15] = TextDrawCreate(598.400024, 314.346679, "~p~UP:~w~00:00");
TextDrawLetterSize(Textdraw[15], 0.330000, 1.450665);
TextDrawAlignment(Textdraw[15], 2);
TextDrawColor(Textdraw[15], -1);
TextDrawSetShadow(Textdraw[15], 0);
TextDrawSetOutline(Textdraw[15], 1);
TextDrawBackgroundColor(Textdraw[15], 51);
TextDrawFont(Textdraw[15], 1);
TextDrawSetProportional(Textdraw[15], 1);

//ONPLAYERSPAWN
for(new i = 0; i < sizeof(Textdraw); i++)
{
   
    TextDrawShowForPlayer(playerid, Textdraw[i]);
    return 1;
}
Nгo deu erro, mais continuou nгo aparecendo =/
Reply
#5

Quote:
Originally Posted by Whoo
Посмотреть сообщение
Oi faзa desse modo economiza linha
pawn Код:
//ONPLAYERSPAWN
for(new i = 0; i < sizeof(Textdraw); i++)
{
   
    TextDrawShowForPlayer(playerid, Textdraw[i]);
    return 1;
}
Aqui estб errado, a loop vai ser executa e jб vai ser parada, e nгo vai passar do 0, pois o return vai parar a loop.

@TOPIC
Faг do jeito que o Whoo falou sу modifique estб parte.
pawn Код:
for(new i = 0; i < sizeof(Textdraw); i++)
{
   
    TextDrawShowForPlayer(playerid, Textdraw[i]);
}
Reply
#6

Quote:
Originally Posted by MultiKill
Посмотреть сообщение
Aqui estб errado, a loop vai ser executa e jб vai ser parada, e nгo vai passar do 0, pois o return vai parar a loop.

@TOPIC
Faг do jeito que o Whoo falou sу modifique estб parte.
pawn Код:
for(new i = 0; i < sizeof(Textdraw); i++)
{
   
    TextDrawShowForPlayer(playerid, Textdraw[i]);
}
eu ja tinha dado edit rs, Obrigado
Reply
#7

Quote:
Originally Posted by MultiKill
Посмотреть сообщение
Aqui estб errado, a loop vai ser executa e jб vai ser parada, e nгo vai passar do 0, pois o return vai parar a loop.

@TOPIC
Faг do jeito que o Whoo falou sу modifique estб parte.
pawn Код:
for(new i = 0; i < sizeof(Textdraw); i++)
{
   
    TextDrawShowForPlayer(playerid, Textdraw[i]);
}
Elas ainda nгo apareceram. rsrs ;-;
Reply
#8

As textdraws aparecem vocк que estб fazendo errado.

Вложение 8495
Reply
#9

Desde quando se mostra td no OnPlayerSpawn sem variбvel. . '-' Gol do Neymar <3
Reply
#10

Quote:
Originally Posted by JonathanFeitosa
Посмотреть сообщение
Desde quando se mostra td no OnPlayerSpawn sem variбvel. . '-' Gol do Neymar <3
Desculpa, sou novato na programaзгo. Nгo entendi =/
Reply


Forum Jump:


Users browsing this thread: