Trouble with a simple command!
#4

@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:

pawn Код:
IsPlayerInsideHouse(playerid)
{
    new hworld = GetPlayerVirtualWorld(playerid);
    for(new h = 1; h < sizeof(HouseInfo); h++)
    {
        if(hworld == HouseInfo[h][hInsideWorld]) return h;
    }
    return -1;
}
Everytime a house is created the ID of that house sets the InsideWorld.
Reply


Messages In This Thread
Trouble with a simple command! - by Chrillzen - 27.11.2013, 23:09
Re: Trouble with a simple command! - by xVIP3Rx - 27.11.2013, 23:22
Re: Trouble with a simple command! - by Loot - 27.11.2013, 23:28
Re: Trouble with a simple command! - by Chrillzen - 27.11.2013, 23:34
Re: Trouble with a simple command! - by xVIP3Rx - 27.11.2013, 23:49

Forum Jump:


Users browsing this thread: 1 Guest(s)