/exit Not work
#1

Im make 24/7 shop make likethis but why not work ?

pawn Код:
else if(IsPlayerInRangeOfPoint(playerid,3.0,2496.65,-1696.55,1014.74)) //
            {
                if(GetPlayerVirtualWorld(playerid) == 10)
                {
                    SetPlayerInterior(playerid, 0);
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerPos(playerid, 2495.2090,-1687.3044,13.5151);
                    SetPlayerFacingAngle(playerid, 181.8075);
                    SetCameraBehindPlayer(playerid);
                }
                else
                {

                }
            }
            else if(IsPlayerInRangeOfPoint(playerid,50.0,1118.8878,-10.2737,1002.0859)) //
            {
                if(GetPlayerVirtualWorld(playerid) == 1337)
                {
                    SetPlayerInterior(playerid, 0);
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerPos(playerid, 1797.4514,-1578.9645,14.0856);
                    SetPlayerFacingAngle(playerid, 181.8075);
                    SetCameraBehindPlayer(playerid);
                }
                else
                {

                }
            }
Reply
#2

Are you in virtualworld 1337/10, are u in range of the coords?
Reply
#3

Can you show us the "/enter" command about these 2, and check if you did
SetPlayerVirtualWorld(playerid,10); and 1337 for those two.
Reply
#4

only ? 1-10 ?
Reply
#5

Another fun thing, why do you got an else doing nothing? In both cases actually.
Reply
#6

Remove the include folder of your samp folder, not the include folder insde pawno, the other one above npcmodes.
Reply
#7

PHP код:
else if(IsPlayerInRangeOfPoint(playerid,3.0,2496.65,-1696.55,1014.74) && GetPlayerVirtualWorld(playerid) == 10//
            
{
                    
SetPlayerInterior(playerid0);
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerPos(playerid2495.2090,-1687.3044,13.5151);
                    
SetPlayerFacingAngle(playerid181.8075);
                    
SetCameraBehindPlayer(playerid);
                }
            else if(
IsPlayerInRangeOfPoint(playerid,50.0,1118.8878,-10.2737,1002.0859) && GetPlayerVirtualWorld(playerid) == 1337//
            
{
                    
SetPlayerInterior(playerid0);
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerPos(playerid1797.4514,-1578.9645,14.0856);
                    
SetPlayerFacingAngle(playerid181.8075);
                    
SetCameraBehindPlayer(playerid);
            } 
Maybe?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)