01.09.2013, 01:08
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;
}