pawn Код:
if(strcmp(cmdtext, "/infocasa", true) == 0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
for(new c = 0; c < MAX_CASAS; c++)
{
format(string, sizeof(string), "/Casas/casa%d.ini", c);
if(dini_Exists(string))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ")))
{
format(STRX, sizeof(STRX), "~~~~ » Proprietбrio: %s » Morador: %s » Nъmero: %d » Valor: R$%d ~~~~", c, dini_Get(string, "Dono"),dini_Get(string, "Morador") , dini_Int(string, "Preco"), dini_Int(string, "Int"));
SendClientMessage(playerid, Amarelo, STRX);
}
else
{
SendClientMessage(playerid, Vermelho, "Vocк nгo estб em uma propriedade.");
}
}
}
return 1;
}