[Pedido] Colocar em DIALOG_STYLE_TABLIST
#2

So uma pergunta, porque voce formata a string com 2800 celulas '-

PHP код:
COMMAND:casas(playeridparams[])
{
    
SendAdminText(playerid"/casas"params);
    new 
niList[2800];
    
strins(niList,"Id\tLevel\tPreзo\n",strlen(niList));
    for(new 
iMAX_HOUSESi++)
        if((
AHouseData[i][Owned] == false) && (AHouseData[i][PickupID] != 0))
            
format(niListsizeof(niList), "%s%d\t%d\t%d\n"niListiAHouseData[i][HouseMaxLevel], AHouseData[i][HousePrice]);
    if(
strlen(niList) != 0)
        
ShowPlayerDialog(playeridDialogCasasVendaDIALOG_STYLE_TABLIST_HEADERS"{FF0000}# {FFFFFF}Casas"niList"Ok""Cancelar");
    else
        
SendClientMessage(playerid, -1"{FF0000}Nгo hб nenhuma casa disponнvel para venda");
    return 
1;

Reply


Messages In This Thread
Colocar em DIALOG_STYLE_TABLIST - by LuisFerreira - 26.07.2015, 01:49
Re: Colocar em DIALOG_STYLE_TABLIST - by iTakelot - 26.07.2015, 02:03
Re: Colocar em DIALOG_STYLE_TABLIST - by LuisFerreira - 26.07.2015, 02:06

Forum Jump:


Users browsing this thread: 2 Guest(s)