27.11.2013, 23:34
@Loot Players can only own one house atm due to the way it's scripted. However I will change it to string comparing.
I debuged the code..
(when outside)
id1 = 5
id2 = 51
HouseID = 5
(when inside)
id1 = -1
id2 = 5
HouseID = 5
Here's my IsPlayerInsideHouse code:
Everytime a house is created the ID of that house sets the InsideWorld.
I debuged the code..
(when outside)
id1 = 5
id2 = 51
HouseID = 5
(when inside)
id1 = -1
id2 = 5
HouseID = 5
Here's my IsPlayerInsideHouse code:
pawn Код:
IsPlayerInsideHouse(playerid)
{
new hworld = GetPlayerVirtualWorld(playerid);
for(new h = 1; h < sizeof(HouseInfo); h++)
{
if(hworld == HouseInfo[h][hInsideWorld]) return h;
}
return -1;
}