02.12.2010, 17:09
Not sure if that'l work but it shouldn't spam i don't think, i just cant see rest of loop so can't tell if thats what you wan't.
pawn Код:
if(pickupid == PickupID[J]) //If the pickupid is one of our house ones
{
SendClientMessage(playerid, COLOR_GREY, "|________________ HOUSING AGENCY ______________|");
format(str, sizeof str, "Address: %s", HouseInfo[J][HouseNames]);
if(HouseInfo[J][Owned] == 1)
{
format(str2, sizeof str2, "Owner: %s", HouseInfo[J][HouseOwner]);
format(str3, sizeof str3, "For sale: {FF0000}No");
SendClientMessage(playerid, COLOR_ADMIN, str);
SendClientMessage(playerid, COLOR_ADMIN, str3);
break;
}
if(HouseInfo[J][Owned] == 0)
{
format(str2, sizeof str2, "Owner: No-One");
format(str3, sizeof str3, "For sale: {00FF00}Yes");
SendClientMessage(playerid, COLOR_ADMIN, str2);
SendClientMessage(playerid, COLOR_ADMIN, str3);
break;
}
format(str4, sizeof str4, "Cost Price: %i", HouseInfo[J][HouseCost]);
SendClientMessage(playerid, COLOR_ADMIN, str4);
break;
}