SA-MP Forums Archive
How else could I get this? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How else could I get this? (/showthread.php?tid=302819)



How else could I get this? - Dokins - 10.12.2011

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;
}



Re: How else could I get this? - Dark_Kostas - 10.12.2011

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


Re: How else could I get this? - suhrab_mujeeb - 10.12.2011

You're creating 2+ topics for one problem.


Re: How else could I get this? - Dokins - 10.12.2011

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!