SA-MP Forums Archive
[Ajuda] Retirar Dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Retirar Dialog (/showthread.php?tid=461236)



Retirar Dialog - Sti - 01.09.2013

Queria retirar a Dialog daqui:

pawn Код:
for(new c = 0; c < MAX_CASAS; c++)
    {
        format(string, sizeof(string), PASTA_CASAS, c);
        if(dini_Exists(string))
        {
            if(pickupid == dini_Int(string, "Id"))
            {
                if(dini_Int(string, "TDono") == 0)
                {
                    if(order[playerid] == 0)
                    {
                        order[playerid] = 1;
                        format(STRX, sizeof(STRX), "{FFFFFF}Esta casa está a venda.\n\n{FFFFFF}Valor: {FF0000}$%d\n{FFFFFF}Dono: {FF0000}%s\n{FFFFFF}Morador: {FF0000}%s\n{FFFFFF}Casa ID: {FF0000}%d\n{FFFFFF}Int ID: {FF0000}%d\n\n{FFFFFF}Oque deseja?", dini_Int(string, "Preco"), dini_Get(string, "Dono"), dini_Get(string, "Morador"), c, dini_Int(string, "Int"));
                        ShowPlayerDialog(playerid, casaorder, DIALOG_STYLE_MSGBOX, "Informações", STRX, "Comprar", "Cancelar");
                        new string2[256];
                        new aname[MAX_PLAYER_NAME];
                        format(string2, sizeof(string2), "{ABEB0C}[ INFO ] O(A) Jogador(a) %s {ABEB0C}comprou a Casa ID {FFFFFF}%d  {ABEB0C}localizada: {FFFFFF}%s", aname,c,GetPlayerArea(playerid));
                        SendClientMessageToAll(Amarelo,string2);
                        return 1;
                    }
                }
                else
                {
                    if(strcmp(dini_Get(string, "Dono"), GetPlayerNameEx(playerid), false) == 0)
                    {
                        new year, month, day, data[128];

                        getdate(year, month, day);
                        format(data, sizeof(data), "%d/%d/%d", day, month, year);
                        dini_Set(string, "DataSet", data);
                        return 1;
                    }
                }
            }
        }
    }
    return 1;
}



Re: Retirar Dialog - Coe1 - 01.09.2013

E no lugar do dialog tu quer oque ? ---'


Re: Retirar Dialog - Sti - 01.09.2013

Nada,Quero usar o /comprarcasa,Porque esse Dialog quando vai no Icone aparece pra comprar...


Re: Retirar Dialog - Juniiro3 - 01.09.2013

PHP код:
for(new 0MAX_CASASc++)
    {
        
format(stringsizeof(string), PASTA_CASASc);
        if(
dini_Exists(string))
        {
            if(
pickupid == dini_Int(string"Id"))
            {
                if(
dini_Int(string"TDono") == 0)
                {
                    if(
order[playerid] == 0)
                    {
                        
order[playerid] = 1;
                        
format(STRXsizeof(STRX), "{FFFFFF}Esta casa estб a venda.\n\n{FFFFFF}Valor: {FF0000}$%d\n{FFFFFF}Dono: {FF0000}%s\n{FFFFFF}Morador: {FF0000}%s\n{FFFFFF}Casa ID: {FF0000}%d\n{FFFFFF}Int ID: {FF0000}%d\n\n{FFFFFF}Oque deseja?"dini_Int(string"Preco"), dini_Get(string"Dono"), dini_Get(string"Morador"), cdini_Int(string"Int"));
                        new 
string2[256];
                        new 
aname[MAX_PLAYER_NAME];
                        
format(string2sizeof(string2), "{ABEB0C}[ INFO ] O(A) Jogador(a) %s {ABEB0C}comprou a Casa ID {FFFFFF}%d  {ABEB0C}localizada: {FFFFFF}%s"aname,c,GetPlayerArea(playerid));
                        
SendClientMessageToAll(Amarelo,string2);
                        return 
1;
                    }
                }
                else
                {
                    if(
strcmp(dini_Get(string"Dono"), GetPlayerNameEx(playerid), false) == 0)
                    {
                        new 
yearmonthdaydata[128];

                        
getdate(yearmonthday);
                        
format(datasizeof(data), "%d/%d/%d"daymonthyear);
                        
dini_Set(string"DataSet"data);
                        return 
1;
                    }
                }
            }
        }
    }
    return 
1;




Re: Retirar Dialog - DannielCooper - 01.09.2013

pawn Код:
ShowPlayerDialog(playerid, casaorder, DIALOG_STYLE_MSGBOX, "Informaзхes", STRX, "Comprar", "Cancelar");
Me recuso б acreditar que vocк nгo sabia retirar o dialog daн.


Re: Retirar Dialog - Sti - 01.09.2013

Depois que Criei o Tópico eu apaguei essa linha e já foi Resolvido ^^