How else could I get this?
#1

Problem with this is that, If I set more than one house to the ID it returns the exit to the last house on the database How else could I get the ID so that it wouldn't be an issue?

HouseOwner's ID is set to the HouseID on the mysql database so that checks to see who owns what.... but the problem is, I'd have to set EVERY house with a different interior.


pawn Код:
GetPlayerHouseID(playerid)
{
    for(new x = 1; x < MAX_HOUSES; x++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 10.0, HouseIntX[x], HouseIntY[x], HouseIntZ[x]))
        {
            {
                return x;
            }
        }
    }
    return 0;
}
Reply


Messages In This Thread
How else could I get this? - by Dokins - 10.12.2011, 17:14
Re: How else could I get this? - by Dark_Kostas - 10.12.2011, 17:18
Re: How else could I get this? - by suhrab_mujeeb - 10.12.2011, 17:20
Re: How else could I get this? - by Dokins - 10.12.2011, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)