[Ajuda] Retirar Dialog
#4

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;

Reply


Messages In This Thread
Retirar Dialog - by Sti - 01.09.2013, 01:08
Re: Retirar Dialog - by Coe1 - 01.09.2013, 01:10
Re: Retirar Dialog - by Sti - 01.09.2013, 01:12
Re: Retirar Dialog - by Juniiro3 - 01.09.2013, 01:14
Re: Retirar Dialog - by DannielCooper - 01.09.2013, 02:10
Re: Retirar Dialog - by Sti - 01.09.2013, 03:31

Forum Jump:


Users browsing this thread: 1 Guest(s)