17.12.2010, 18:02
like when i create the first house of all id 0 it creates normally then when i pickup the money is 0 when i set it to more than 0Ђ why
has you can see the one that say
this house is for sale for 500$ is when i pickup the 2nd pickup
the one that says "this house is for sale for 0$" is the first house i created
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new string[128];
for(new i = 0; i < MAX_HOUSES; i++)
{
if(pickupid == PickupID[i])
{
if(HInfo[i][owned] == 1)
{
format(string,sizeof(string),"This house is owned by %s",HInfo[i][ownername]);
SendClientMessage(playerid,0x05FA30FF,string);
}
else
{
format(string,sizeof(string),"This house if for sale, %d$",HInfo[i][price]);
SendClientMessage(playerid,0xF4EF0BFF,string);
break;
}
}
}
return 1;
}
has you can see the one that say
this house is for sale for 500$ is when i pickup the 2nd pickup
the one that says "this house is for sale for 0$" is the first house i created