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
#2

http://forum.sa-mp.com/showpost.php?...42&postcount=2
Reply
#3

You're creating 2+ topics for one problem.
Reply
#4

Quote:
Originally Posted by Dark_Kostas
Посмотреть сообщение
Aha! Thank you, it's funny actually, I already started doing that! I just get frustrated when I can't think and post and spam, sorry about that....

What I did was, under my command /createhouse I made the Virtual World be set to the house id. and I updated every row on the mysql to the HouseVW = ID. So that should be it! Thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)