Help VirtualWorld
#4

pawn Код:
if (strcmp("/exit", cmdtext, true, 10) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid,5,375.962463,-65.816848,1001.507812))
    {
        if(GetPlayerVirtualWorld(playerid) == 2)
        {
            SetPlayerPos(playerid,1199.4426,-918.8450,43.1167);
            SetPlayerInterior(playerid,0);
            SetPlayerVirtualWorld(playerid,0);
        }
        else if(GetPlayerVirtualWorld(playerid) == 3)
        {
            SetPlayerPos(playerid,810.5773,-1615.8075,13.5469);
            SetPlayerInterior(playerid,0);
            SetPlayerVirtualWorld(playerid,0);
        }
    }
    return 1;
}
The problem was that the interior coordinates were the same in both if statements, so after checking the first one (which was true), it didn't check the second one
Reply


Messages In This Thread
Help VirtualWorld - by Loloz - 24.09.2012, 11:23
Re: Help VirtualWorld - by Rimeau - 24.09.2012, 11:34
Re: Help VirtualWorld - by Loloz - 24.09.2012, 11:46
Re: Help VirtualWorld - by Rimeau - 24.09.2012, 11:53
Re: Help VirtualWorld - by Loloz - 24.09.2012, 11:59
Re: Help VirtualWorld - by Loloz - 24.09.2012, 12:56
Re: Help VirtualWorld - by Rimeau - 24.09.2012, 12:58
Re: Help VirtualWorld - by Loloz - 24.09.2012, 13:13
Re: Help VirtualWorld - by Rimeau - 24.09.2012, 13:18
Re: Help VirtualWorld - by Loloz - 24.09.2012, 13:27

Forum Jump:


Users browsing this thread: 1 Guest(s)