Portal SAMP
[Ajuda] Inventário em textdraw bugado - 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: [Ajuda] Inventário em textdraw bugado (/showthread.php?tid=4391)



Inventário em textdraw bugado - Heverton Fagner - 08/01/2024

Criei o inventário em textdraw e a ideia é tirar todas as previews quando o player não estiver nada no inventário.
Usei esse comando, porém ,quando executado não retorna nada o que pode ser? Poderia me explicar como posso fazer o que quero? 


Código:

Código:
CMD:inventario(playerid)
{
 for(new a = 62; a < 81; a++)
 {
     if(PlayerInventario[playerid][a][Slot] == -1)
     {
            PlayerTextDrawSetPreviewRot(playerid, PlayerInventarioUBL[playerid][60], -10.000000, 0.000000, 0.000000, 999);
     }
 }
 for(new i = 0; i < 91; i++)
 {
  PlayerTextDrawShow(playerid, PlayerInventarioUBL[playerid][i]);
 } 
 for(new ii = 0; ii < 57; ii++) 
 {
  TextDrawShowForPlayer(playerid, InventarioUBL[ii]);
 }
 SelectTextDraw(playerid, COR_UBL);
 return 1;
}