House system error
#1

Код:
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?
Reply
#2

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
Reply
#3

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);
Reply
#4

Show code where you enter the house.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)