entering a interior makes the world disappear
#1

Hello guys, I occurred a problem that when I /enter an interior and than exiting it makes the world disappear and few objects are there only, and those are only the objects I edited.

What could be the problem? Here is the /enter /exit command for the building that makes this happen.

Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid,3.0,-207.2261,1077.2693,20.5992)) //City Hall
    {
       SetPlayerInterior(playerid,10);
       SetPlayerPos(playerid,246.3760,109.2460,1003.2188);
       }
    return 1;
}
Here is the /exit command:

Код:
CMD:exit(playerid, params[])
{
       if(IsPlayerInRangeOfPoint(playerid,3.0,246.3760,109.2460,1003.2188)) //City Hall
       {
         SetPlayerPos(playerid,-207.2261,1077.2693,20.5992);
         }
     return 1;
}
Here is a picture:
Reply
#2

pawn Код:
CMD:exit(playerid, params[])
{
       if(IsPlayerInRangeOfPoint(playerid,3.0,246.3760,109.2460,1003.2188)) //City Hall
       {
         SetPlayerInterior(playerid,0);
         SetPlayerVirtualWorld(playerid,0);
         SetPlayerPos(playerid,-207.2261,1077.2693,20.5992);
         }
     return 1;
}
Try resetting it back to vw 0 with this ,

Good luck and let me know if it worked out well!
Reply
#3

Код:
CMD:exit(playerid, params[])
{
       if(IsPlayerInRangeOfPoint(playerid,3.0,246.3760,109.2460,1003.2188)) //City Hall
       {
         SetPlayerVirtualWorld(playerid, 0);
         SetPlayerPos(playerid,-207.2261,1077.2693,20.5992);
         }
     return 1;
}
+rep
If worked.
Reply
#4

It's only a problem of the interior-id, not virtual world!
Reply
#5

Then use :-

Код:
SetPlayerInterior(playerid, 0);
Reply
#6

SetPlayerInterior should do the trick as you used the code before to go to that interior id
Reply
#7

Quote:
Originally Posted by Smikkeltoetje
Посмотреть сообщение
pawn Код:
CMD:exit(playerid, params[])
{
       if(IsPlayerInRangeOfPoint(playerid,3.0,246.3760,109.2460,1003.2188)) //City Hall
       {
         SetPlayerInterior(playerid,0);
         SetPlayerVirtualWorld(playerid,0);
         SetPlayerPos(playerid,-207.2261,1077.2693,20.5992);
         }
     return 1;
}
Try resetting it back to vw 0 with this ,

Good luck and let me know if it worked out well!
Works like butter lol Thanks !
Reply
#8

+rep for everyone then
Reply
#9

Quote:
Originally Posted by Jhony_Blaze
Посмотреть сообщение
+rep for everyone then
Thanks! I'm glad we were able to help you with your problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)