02/06/2024 14:16 
	
	
	Código:
stock config_listInteriors(playerid){
    new string[145];
    new Float:baseY = 160.000;
    new Float:incrementY = 17.000;
    format(string, sizeof(string), "%s", int_list[0][nome]);
    PlayerTextDrawSetString(playerid, textdraw_CE[playerid][11], string);
    format(string, sizeof(string), "%s", int_list[0][tipo]);
    PlayerTextDrawSetString(playerid, textdraw_CE[playerid][16], string);
    format(string, sizeof(string), "%d", int_list[0][interior]);
    PlayerTextDrawSetString(playerid, textdraw_CE[playerid][17], string);
    new index = 0;
    for(new i = 1; i < sizeof(int_list); i++){
        new Float:currentY = baseY + (i * incrementY);
        printf("%f", currentY);
        printf("%d", index); 
        textdraw_listInt[playerid][index] = CreatePlayerTextDraw(playerid, 272.000, currentY, "LD_SPAC:white"); // Fundo
        PlayerTextDrawTextSize(playerid, textdraw_listInt[playerid][index], 167.000, 15.000);
        PlayerTextDrawAlignment(playerid, textdraw_listInt[playerid][index], 1);
        PlayerTextDrawColor(playerid, textdraw_listInt[playerid][index], 724450815);
        PlayerTextDrawSetShadow(playerid, textdraw_listInt[playerid][index], 0);
        PlayerTextDrawSetOutline(playerid, textdraw_listInt[playerid][index], 0);
        PlayerTextDrawBackgroundColor(playerid, textdraw_listInt[playerid][index], 255);
        PlayerTextDrawFont(playerid, textdraw_listInt[playerid][index], 4);
        PlayerTextDrawSetProportional(playerid, textdraw_listInt[playerid][index], 1);
        PlayerTextDrawSetSelectable(playerid, textdraw_listInt[playerid][index], 1);
        index++;
        printf("%d", index);
        format(string, sizeof(string), "%s", int_list[nome]);
        textdraw_listInt[playerid][index] = CreatePlayerTextDraw(playerid, 275.000, currentY + 4.0, string); // Nome
        PlayerTextDrawLetterSize(playerid, textdraw_listInt[playerid][index], 0.140, 0.699);
        PlayerTextDrawAlignment(playerid, textdraw_listInt[playerid][index], 1);
        PlayerTextDrawColor(playerid, textdraw_listInt[playerid][index], -1);
        PlayerTextDrawFont(playerid, textdraw_listInt[playerid][index], 1);
        PlayerTextDrawSetShadow(playerid, textdraw_listInt[playerid][index], 0);
        PlayerTextDrawSetOutline(playerid, textdraw_listInt[playerid][index], 0);
        PlayerTextDrawBackgroundColor(playerid, textdraw_listInt[playerid][index], 150);
        PlayerTextDrawSetProportional(playerid, textdraw_listInt[playerid][index], 1);
        index++;
        printf("%d", index);
        format(string, sizeof(string), "%s", int_list[tipo]);
        textdraw_listInt[playerid][index] = CreatePlayerTextDraw(playerid, 352.000, currentY + 4.0, string); // Tipo
        PlayerTextDrawLetterSize(playerid, textdraw_listInt[playerid][index], 0.140, 0.699);
        PlayerTextDrawAlignment(playerid, textdraw_listInt[playerid][index], 2);
        PlayerTextDrawColor(playerid, textdraw_listInt[playerid][index], -1);
        PlayerTextDrawFont(playerid, textdraw_listInt[playerid][index], 1);
        PlayerTextDrawSetShadow(playerid, textdraw_listInt[playerid][index], 0);
        PlayerTextDrawSetOutline(playerid, textdraw_listInt[playerid][index], 0);
        PlayerTextDrawBackgroundColor(playerid, textdraw_listInt[playerid][index], 150);
        PlayerTextDrawSetProportional(playerid, textdraw_listInt[playerid][index], 1);
        index++;
        printf("%d", index);
        format(string, sizeof(string), "%d", int_list[interior]);
        textdraw_listInt[playerid][index] = CreatePlayerTextDraw(playerid, 435.000, currentY + 4.0, string); // Interior
        PlayerTextDrawLetterSize(playerid, textdraw_listInt[playerid][index], 0.119, 0.699);
        PlayerTextDrawAlignment(playerid, textdraw_listInt[playerid][index], 3);
        PlayerTextDrawColor(playerid, textdraw_listInt[playerid][index], -1);
        PlayerTextDrawFont(playerid, textdraw_listInt[playerid][index], 1);
        PlayerTextDrawSetShadow(playerid, textdraw_listInt[playerid][index], 0);
        PlayerTextDrawSetOutline(playerid, textdraw_listInt[playerid][index], 0);
        PlayerTextDrawBackgroundColor(playerid, textdraw_listInt[playerid][index], 150);
        PlayerTextDrawSetProportional(playerid, textdraw_listInt[playerid][index], 1);
        index++;
    }
    return 1;
}Alguém pode me dar uma ajuda aqui? To tentando criar uma lista com um conteudo apartir de uma Array. Porém estou com problemas, não esta mostrando todos os itens da lista.

	   
	
