25.11.2011, 16:58
The pickup you can see below is a Faction Pickup: It shouldn't display the code here but only on the houses...

It seems to be executing this code:
Can someone help and explain why this is happening?

It seems to be executing this code:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new string[256];
for(new i = 0; i < MAX_HOUSES; i++)
{
if(pickupid == HousePickup[i])
{
if(!(strcmp(HouseOwner[i], "nobody", true)))
{
format(string, sizeof(string), "~r~For Sale : %s~n~~w~Price: $%d~n~~b~Type '/buyhouse' to purchase.", HouseName[i], HousePrice[i]);
}
else
{
format(string, sizeof(string), "Address: %s ~n~ Owner: %s", HouseName[i], HouseOwner[i]);
}
GameTextForPlayer(playerid, string, 3000, 5);
break;
}
}
return 1;
}
