[Ajuda] Dialog
#4

razorcrash, uma base para vocк estudar:

PHP Code:
CMD:contratos(playerid)
{
    new
        
g_size[1000], psize[1000], count 0;
        
    
format(psizesizeof(psize), "Organizaзгo\tNick/ID\tValor\n");
    
strcat(g_sizepsize);

    for(new 
iMAX_PLAYERS; ++i)
    {
        if(
IsPlayerConnected(i) && PlayerData[i][pLogado] == true)
        {
            if(
PlayerData[i][EmContrato] == 1)
            {
                
format(psizesizeof(psize), "%s\t%s[%d]\t%d\n"GetPlayerOrganizacao(i), ReturnName(i), ivalori);
                
strcat(g_sizepsize);

                
count ++;
            }
        }
    }
    
    if(
count != 0ShowPlayerDialog(playerid30000DIALOG_STYLE_TABLIST_HEADERS"Players Contratados"g_size"Fechar""");
    else 
ShowPlayerDialog(playerid30000DIALOG_STYLE_TABLIST_HEADERS"Players Contratados""Nenhum contratado Online no momento!""Fechar""");
}

stock GetPlayerOrganizacao(playerid)
{
    new 
string[20];

    switch(
PlayerData[playerid][pOrganizacao])
    {
        case 
1string "Ballas";
        case 
INVALID_ORG_IDstring "Nгo possui organizaзгo";
    }
    return 
string;
}

stock ReturnName(playerid)
{
    new 
wName[24];
    
GetPlayerName(playeridwNamesizeof(wName));
    return 
wName;

Agora sobre aumentar vertical e horizontal, nгo hб como, hб nгo ser que vocк coloca esses simbolos "____" para ficar dando espaзo, mas isso й besteira.

EXEMPLO:

PHP Code:
format(psizesizeof(psize), "Organizaзгo_______\tNick/ID_________\tValor_________\n"); 
Reply


Messages In This Thread
Dialog - by razorcrash - 14.04.2019, 20:28
Re: Dialog - by GuiKommander - 14.04.2019, 21:32
Re: Dialog - by razorcrash - 14.04.2019, 21:54
Re: Dialog - by GuiKommander - 14.04.2019, 22:14
Re: Dialog - by SerignoLLi - 15.04.2019, 02:16
Re: Dialog - by razorcrash - 15.04.2019, 12:57
Re: Dialog - by SerignoLLi - 15.04.2019, 16:35
Re: Dialog - by razorcrash - 15.04.2019, 16:47

Forum Jump:


Users browsing this thread: 1 Guest(s)