[Ajuda] Inventбrio
#1

Boas comunidade SA-MP Forums. Eu criei um inventбrio em textdrawns clicavйis mas o mesmo nгo estб gerando a imagem de todas as drawns, ou seja, sу aparece algumas das drawns definidas.

Programa usado: Zamaratoh
Versгo SA-MP Biblioteca/Includes: 0.3z


Code drawns abaixo:

pawn Код:
/*Inventбrio*/
    Inventario = TextDrawCreate(160.000000, 121.000000, "Inventario (Sem Mochila)");
    TextDrawBackgroundColor(Inventario, 255);
    TextDrawFont(Inventario, 2);
    TextDrawLetterSize(Inventario, 0.209999, 1.000000);
    TextDrawColor(Inventario, 255);
    TextDrawSetOutline(Inventario, 0);
    TextDrawSetProportional(Inventario, 1);
    TextDrawSetShadow(Inventario, 0);
    TextDrawUseBox(Inventario, 1);
    TextDrawBoxColor(Inventario, 1768516010);
    TextDrawTextSize(Inventario, 483.000000, 180.000000);
/*Inventбrio Fechar*/
    IFechar = TextDrawCreate(461.000000, 121.000000, "(X)");
    TextDrawBackgroundColor(IFechar, 255);
    TextDrawFont(IFechar, 1);
    TextDrawLetterSize(IFechar, 0.500000, 1.000000);
    TextDrawColor(IFechar, -7602006);
    TextDrawSetOutline(IFechar, 0);
    TextDrawSetProportional(IFechar, 1);
    TextDrawSetShadow(IFechar, 0);
/*Inventбrio Box*/
    IBox = TextDrawCreate(489.000000, 136.000000, "");
    TextDrawBackgroundColor(IBox, 255);
    TextDrawFont(IBox, 1);
    TextDrawLetterSize(IBox, 0.550000, 11.400007);
    TextDrawColor(IBox, -1);
    TextDrawSetOutline(IBox, 0);
    TextDrawSetProportional(IBox, 1);
    TextDrawSetShadow(IBox, 1);
    TextDrawUseBox(IBox, 1);
/*Inventбrio Slots*/
    ISlots = TextDrawCreate(258.000000, 333.000000, "Slots/Usados (0/8)");
    TextDrawBackgroundColor(ISlots, 255);
    TextDrawFont(ISlots, 2);
    TextDrawLetterSize(ISlots, 0.280000, 0.799998);
    TextDrawColor(ISlots, 255);
    TextDrawSetOutline(ISlots, 0);
    TextDrawSetProportional(ISlots, 1);
    TextDrawSetShadow(ISlots, 0);
/*Inventбrio Item 1*/
    IItem1 = TextDrawCreate(242.000000, 140.000000, "");
    TextDrawBackgroundColor(IItem1, 255);
    TextDrawFont(IItem1, 1);
    TextDrawLetterSize(IItem1, 0.000000, 9.400004);
    TextDrawColor(IItem1, -1);
    TextDrawSetOutline(IItem1, 0);
    TextDrawSetProportional(IItem1, 1);
    TextDrawSetShadow(IItem1, 1);
    TextDrawUseBox(IItem1, 1);
    TextDrawBoxColor(IItem1, 255);
    TextDrawTextSize(IItem1, 157.000000, 23.000000);
/*Inventбrio Item 2*/
    IItem2 = TextDrawCreate(242.000000, 233.000000, "");
    TextDrawBackgroundColor(IItem2, 255);
    TextDrawFont(IItem2, 1);
    TextDrawLetterSize(IItem2, 0.000000, 9.400004);
    TextDrawColor(IItem2, -1);
    TextDrawSetOutline(IItem2, 0);
    TextDrawSetProportional(IItem2, 1);
    TextDrawSetShadow(IItem2, 1);
    TextDrawUseBox(IItem2, 1);
    TextDrawBoxColor(IItem2, 255);
    TextDrawTextSize(IItem2, 157.000000, 23.000000);
/*Inventбrio Item 3*/
    IItem3 = TextDrawCreate(326.000000, 233.000000, "");
    TextDrawBackgroundColor(IItem3, 255);
    TextDrawFont(IItem3, 1);
    TextDrawLetterSize(IItem3, 0.000000, 9.400004);
    TextDrawColor(IItem3, -1);
    TextDrawSetOutline(IItem3, 0);
    TextDrawSetProportional(IItem3, 1);
    TextDrawSetShadow(IItem3, 1);
    TextDrawUseBox(IItem3, 1);
    TextDrawBoxColor(IItem3, 255);
    TextDrawTextSize(IItem3, 241.000000, 23.000000);
/*Inventбrio Item 4*/
    IItem4 = TextDrawCreate(326.000000, 140.000000, "");
    TextDrawBackgroundColor(IItem4, 255);
    TextDrawFont(IItem4, 1);
    TextDrawLetterSize(IItem4, 0.000000, 9.400004);
    TextDrawColor(IItem4, -1);
    TextDrawSetOutline(IItem4, 0);
    TextDrawSetProportional(IItem4, 1);
    TextDrawSetShadow(IItem4, 1);
    TextDrawUseBox(IItem4, 1);
    TextDrawBoxColor(IItem4, 255);
    TextDrawTextSize(IItem4, 241.000000, 23.000000);
/*Inventбrio Item 5*/
    IItem5 = TextDrawCreate(403.000000, 140.000000, "");
    TextDrawBackgroundColor(IItem5, 255);
    TextDrawFont(IItem5, 1);
    TextDrawLetterSize(IItem5, 0.000000, 9.400004);
    TextDrawColor(IItem5, -1);
    TextDrawSetOutline(IItem5, 0);
    TextDrawSetProportional(IItem5, 1);
    TextDrawSetShadow(IItem5, 1);
    TextDrawUseBox(IItem5, 1);
    TextDrawBoxColor(IItem5, 255);
    TextDrawTextSize(IItem5, 325.000000, 23.000000);
/*Inventбrio Item 6*/
    IItem6 = TextDrawCreate(403.000000, 233.000000, "");
    TextDrawBackgroundColor(IItem6, 255);
    TextDrawFont(IItem6, 1);
    TextDrawLetterSize(IItem6, 0.000000, 9.400004);
    TextDrawColor(IItem6, -1);
    TextDrawSetOutline(IItem6, 0);
    TextDrawSetProportional(IItem6, 1);
    TextDrawSetShadow(IItem6, 1);
    TextDrawUseBox(IItem6, 1);
    TextDrawBoxColor(IItem6, 255);
    TextDrawTextSize(IItem6, 325.000000, 23.000000);
/*Inventбrio Item 7*/
    IItem7 = TextDrawCreate(485.000000, 233.000000, "");
    TextDrawBackgroundColor(IItem7, 255);
    TextDrawFont(IItem7, 1);
    TextDrawLetterSize(IItem7, 0.000000, 9.400004);
    TextDrawColor(IItem7, -1);
    TextDrawSetOutline(IItem7, 0);
    TextDrawSetProportional(IItem7, 1);
    TextDrawSetShadow(IItem7, 1);
    TextDrawUseBox(IItem7, 1);
    TextDrawBoxColor(IItem7, 255);
    TextDrawTextSize(IItem7, 402.000000, 23.000000);
/*Inventбrio Item 8*/
    IItem8 = TextDrawCreate(485.000000, 140.000000, "");
    TextDrawBackgroundColor(IItem8, 255);
    TextDrawFont(IItem8, 1);
    TextDrawLetterSize(IItem8, 0.000000, 9.400004);
    TextDrawColor(IItem8, -1);
    TextDrawSetOutline(IItem8, 0);
    TextDrawSetProportional(IItem8, 1);
    TextDrawSetShadow(IItem8, 1);
    TextDrawUseBox(IItem8, 1);
    TextDrawBoxColor(IItem8, 255);
    TextDrawTextSize(IItem8, 402.000000, 23.000000);
/*Inventбrio Proximo*/
    IProximo = TextDrawCreate(212.000000, 330.000000, "Proximo");
    TextDrawAlignment(IProximo, 2);
    TextDrawBackgroundColor(IProximo, 255);
    TextDrawFont(IProximo, 2);
    TextDrawLetterSize(IProximo, 0.360000, 1.000000);
    TextDrawColor(IProximo, -1);
    TextDrawSetOutline(IProximo, 0);
    TextDrawSetProportional(IProximo, 1);
    TextDrawSetShadow(IProximo, 1);
    TextDrawUseBox(IProximo, 1);
    TextDrawBoxColor(IProximo, -1306385665);
    TextDrawTextSize(IProximo, 62.000000, 65.000000);
/*Inventбrio Anterior*/
    IAnterior = TextDrawCreate(431.000000, 330.000000, "Anterior");
    TextDrawAlignment(IAnterior, 2);
    TextDrawBackgroundColor(IAnterior, 255);
    TextDrawFont(IAnterior, 2);
    TextDrawLetterSize(IAnterior, 0.360000, 1.000000);
    TextDrawColor(IAnterior, -1);
    TextDrawSetOutline(IAnterior, 0);
    TextDrawSetProportional(IAnterior, 1);
    TextDrawSetShadow(IAnterior, 1);
    TextDrawUseBox(IAnterior, 1);
    TextDrawBoxColor(IAnterior, -1306385665);
    TextDrawTextSize(IAnterior, 63.000000, 72.000000);
    TextDrawSetSelectable(IFechar, true);//Fechar
    TextDrawSetSelectable(IAnterior, true);//Anterior
    TextDrawSetSelectable(IProximo, true);//Proximo
Code Chamar Drawns

pawn Код:
MostrarTD(playerid){
    TextDrawShowForPlayer(playerid,IBox);
    TextDrawShowForPlayer(playerid,ISlots);
    TextDrawShowForPlayer(playerid,IItem1);
    TextDrawShowForPlayer(playerid,IItem2);
    TextDrawShowForPlayer(playerid,IItem3);
    TextDrawShowForPlayer(playerid,IItem4);
    TextDrawShowForPlayer(playerid,IItem5);
    TextDrawShowForPlayer(playerid,IItem6);
    TextDrawShowForPlayer(playerid,IItem7);
    TextDrawShowForPlayer(playerid,IItem8);
    TextDrawShowForPlayer(playerid,IFechar);
    TextDrawShowForPlayer(playerid,IProximo);
    TextDrawShowForPlayer(playerid,IAnterior);
    TextDrawShowForPlayer(playerid,Inventario);
    return 1;
}
Reply
#2

UP ajuda ai!
Reply
#3

Coloque o cуdigo todo, talvez seja algum conflito.
Reply
#4

acho que deve criar um loop para criar as textdraws e usar assim as funзхes de mostra a TD
pawn Код:
TextDrawShowForPlayer(playerid,IBox[playerid]);
Reply
#5

Quote:
Originally Posted by ExPLORE
Посмотреть сообщение
acho que deve criar um loop para criar as textdraws e usar assim as funзхes de mostra a TD
pawn Код:
TextDrawShowForPlayer(playerid,IBox[playerid]);
Cara ainda nгo tentei o mйtodo de textdrawns singulares. Pois to usando drawns globais.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)