Help getting house ID? - 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: Help getting house ID? (
/showthread.php?tid=302759)
Help getting house ID? -
Dokins - 10.12.2011
Alright, I would like to know how I would get the houseid of the house a player is in...
The houseid that the player owns is HouseOwner[playerid] == id
id = houseid according to SQL.
How would I get the ID of the house the player is in...?
The HouseOwner[playerid] is inserted when a player /buyhouse so the ID of the house is placed in the HouseOwner variable on their account.....
How could I get the ID of a house when a player is in it?
Re: Help getting house ID? -
MadeMan - 10.12.2011
Save it to a variable when player enters the house.