20.11.2011, 19:03
I will post code when necessary:
Can someone tell me why this happens:
My houses load the pickups, names correctly, but the text doesnt appear saying for sale, but it appears on the faction pickup!? :S its so strange!! I can't get my head around it.
Loading Factions:
http://pastebin.com/A73G0An2
Loading Houses:
http://pastebin.com/HtrQnfR3
This might help.
Can someone tell me why this happens:
My houses load the pickups, names correctly, but the text doesnt appear saying for sale, but it appears on the faction pickup!? :S its so strange!! I can't get my head around it.
Loading Factions:
http://pastebin.com/A73G0An2
Loading Houses:
http://pastebin.com/HtrQnfR3
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new string[256];
for(new i = 1; i < MAX_HOUSES; i++)
{
if(pickupid == HousePickup[i])
{
if(!strcmp(HouseOwner[i], "Nobody", true && HousePrice[i] >= 1))
{
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;
}