House system error - 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: House system error (
/showthread.php?tid=399510)
House system error -
TheDirtyDan - 14.12.2012
Код:
GetPlayerPos(playerid, HouseInfo[houseid][hInteriorX], HouseInfo[houseid][hInteriorY], HouseInfo[houseid][hInteriorZ]);
GetPlayerFacingAngle(playerid, HouseInfo[houseid][hInteriorA]);
HouseInfo[houseid][hHInteriorWorld] = GetPlayerInterior(playerid);
I don't know why, but now every single time I try to go to those coords, it takes me to the correct interior id, but not the coords. Any help?
Re: House system error -
Matthew_Garrowo - 15.12.2012
you probably are writing in the wrong cords pm me and ill help you out with this but your going to half to send me either your fs or gm with the house problem so i can take a look ill only help you if you check out my server
Re: House system error -
maramizo - 15.12.2012
pawn Код:
GetPlayerPos(playerid, HouseInfo[houseid][hInteriorX], HouseInfo[houseid][hInteriorY], HouseInfo[houseid][hInteriorZ]);
GetPlayerFacingAngle(playerid, HouseInfo[houseid][hInteriorA]);
HouseInfo[houseid][hHInteriorWorld] = GetPlayerInterior(playerid);
to
pawn Код:
SetPlayerPos(playerid, HouseInfo[houseid][hInteriorX], HouseInfo[houseid][hInteriorY], HouseInfo[houseid][hInteriorZ]);
GetPlayerFacingAngle(playerid, HouseInfo[houseid][hInteriorA]);
HouseInfo[houseid][hHInteriorWorld] = GetPlayerInterior(playerid);
Re: House system error -
cosbraa - 15.12.2012
Show code where you enter the house.
Re: House system error -
RajatPawar - 15.12.2012
pawn Код:
HouseInfo[houseid][hHInteriorWorld] = GetPlayerInterior(playerid);
So if a player is entering the house, you are setting 0 as the interior world of the house? You should use 'SetPlayerInterior' instead of Get, imo.