SA-MP Forums Archive
Interior bug - 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: Interior bug (/showthread.php?tid=600715)



Interior bug - AnoTek - 12.02.2016

I've made two 24/7 with the same interiors one in LS and one in SF. When i exit from 24/7 SF it put me on the exit from the 24/7 LS

Код:
   else if (PlayerToPoint(3.0, playerid,1352.3225,-1759.0187,13.5078)) // /enter 24/7 3
   {
        SetPlayerInterior(playerid,16);
     SetPlayerPos(playerid,-26.0137,-140.1184,1003.5469);
     PlayerInfo[playerid][pInt] = 16;
     SetPlayerVirtualWorld(playerid, 10);
     PlayerInfo[playerid][pLocal] = 257;
   }
   else if (PlayerToPoint(3.0, playerid,-26.0137,-140.1184,1003.5469)) // /exit 24/7 4
   {
        SetPlayerInterior(playerid,0);
     SetPlayerPos(playerid,1352.3225,-1759.0187,13.5078);
     PlayerInfo[playerid][pInt] = 0;
     PlayerInfo[playerid][pLocal] = 257;
   }



Re: Interior bug - Rodri99 - 12.02.2016

Check the spawn positions, X, Y, Z.
Make sure that are all the right positions.

Regards,
Rodri.


Re: Interior bug - Sascha - 12.02.2016

Have you created both interiors at the same position but in another interior?
In this case, it will always detect the first "if" as the position is unrelated to the interior id.
So if you use 1 interior in 2 interior ids, then you should check which interior id the player is in with GetPlayerInterior