02.12.2010, 16:56
Hello,
I was wondering how i could display the 4 SCM's without it spamming? And without it showing House Info on other pickups,
Thats how it is atm but it spams the SCM, I dont want it to spam and i only want it to show house info on those pickups
And i dont know how, Can any1 help, ta
I was wondering how i could display the 4 SCM's without it spamming? And without it showing House Info on other pickups,
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");
}
if(HouseInfo[J][Owned] == 0)
{
format(str2, sizeof str2, "Owner: No-One");
format(str3, sizeof str3, "For sale: {00FF00}Yes");
}
format(str4, sizeof str4, "Cost Price: %i", HouseInfo[J][HouseCost]);
SendClientMessage(playerid, COLOR_ADMIN, str);
SendClientMessage(playerid, COLOR_ADMIN, str2);
SendClientMessage(playerid, COLOR_ADMIN, str3);
SendClientMessage(playerid, COLOR_ADMIN, str4);
}
And i dont know how, Can any1 help, ta