06.12.2015, 13:37
PHP код:
else if(IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[hid][XEnt],HouseInfo[hid][YEnt],HouseInfo[hid][ZEnt])) //enter house!
{
if((pinfo[playerid][ID] != HouseInfo[hid][HOwnerID] && HouseInfo[hid][HOwned] == 1) return SendClientMessage(playerid, -1, ""COL_RED"SERVER"COL_WHITE":You cant enter the house since it's not yours!");
EnterHouse(playerid,hid);
}
cause you were inserting string into int I think you were bugging all house enum saves, try to print house id on the command
PHP код:
printf("%d %d",HouseInfo[hid][HOwnerID] && HouseInfo[hid][HOwned]);