Server:Unknown Command [+rep]
#2

Add "return 1;" at the end of each command. So you would have:

pawn Код:
if (strcmp(cmdtext, "/enter", true) == 0)
{
            if(IsPlayerInRangeOfPoint(playerid, 2.0, 2318.7637,-89.8024,26.4844))//palomino general creeck 1
            {
                SetPlayerPos(playerid, -27.5851,-57.2032,1003.5469);
                SetPlayerInterior(playerid, 6);
                SetPlayerVirtualWorld(playerid, 0);
            }
            else if(IsPlayerInRangeOfPoint(playerid, 2.0,2245.9036,52.0571,26.6671))//palomino general creeck 2
            {
                SetPlayerPos(playerid, -27.5851,-57.2032,1003.5469);
                SetPlayerInterior(playerid, 6);
                SetPlayerVirtualWorld(playerid, 1);

            }
            else if(IsPlayerInRangeOfPoint(playerid, 2.0,2245.9036,52.0571,26.6671))//palomino general creeck 2
            {
                SetPlayerPos(playerid ,-27.5851,-57.2032,1003.5469);
                SetPlayerInterior(playerid, 6);
                SetPlayerVirtualWorld(playerid, 2);

            }

            return 1;
}


if (strcmp(cmdtext, "/exit", true) == 0)
{
        if(IsPlayerInRangeOfPoint(playerid, 3.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
        {
        if ( GetPlayerVirtualWorld( playerid ) == 0 )
        SetPlayerPos(playerid, 2318.7637,-89.8024,26.4844);
        if(IsPlayerInRangeOfPoint(playerid, 3.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
        if ( GetPlayerVirtualWorld( playerid ) == 0 )
        SetPlayerInterior(playerid, 0);
        if ( GetPlayerVirtualWorld( playerid ) == 0 )
        SetPlayerVirtualWorld(playerid, 0);
        return 1;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, -27.0721,-56.7820,1003.5469))//palomino general creeck 2
        {
        if(GetPlayerVirtualWorld(playerid) == 1)
        SetPlayerPos(playerid, 2245.9036,52.0571,26.6671);
        if(IsPlayerInRangeOfPoint(playerid, 2.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
        if ( GetPlayerVirtualWorld( playerid ) == 0 )
        SetPlayerInterior(playerid, 0);
        if(IsPlayerInRangeOfPoint(playerid, 2.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
        if ( GetPlayerVirtualWorld( playerid ) == 0 )
        SetPlayerVirtualWorld(playerid, 0);

        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, -27.0721,-56.7820,1003.5469))//palomino general creeck 2
        {
        if(GetPlayerVirtualWorld(playerid) == 2)
        SetPlayerPos(playerid, 2245.9036,52.0571,26.6671);
        if(IsPlayerInRangeOfPoint(playerid, 2.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
        if ( GetPlayerVirtualWorld( playerid ) == 2 )
        SetPlayerInterior(playerid, 0);
        if(IsPlayerInRangeOfPoint(playerid, 2.0, -27.0721,-56.7820,1003.5469)) //Garage 2 umbrella
        if ( GetPlayerVirtualWorld( playerid ) == 2 )
        SetPlayerVirtualWorld(playerid, 0);

        }

        return 1;
}
Reply


Messages In This Thread
Server:Unknown Command [+rep] SOLVED - by cs_waller - 31.01.2012, 12:32
Re: Server:Unknown Command [+rep] - by SpiritEvil - 31.01.2012, 12:44
Re: Server:Unknown Command [+rep] - by cs_waller - 31.01.2012, 12:48
Re: Server:Unknown Command [+rep] - by SpiritEvil - 31.01.2012, 12:50
Re: Server:Unknown Command [+rep] - by Tanush123 - 31.01.2012, 13:34
Re: Server:Unknown Command [+rep] - by SpiritEvil - 31.01.2012, 13:50
Re: Server:Unknown Command [+rep] - by Arnold_Collins - 31.01.2012, 13:53
Re: Server:Unknown Command [+rep] - by SpiritEvil - 31.01.2012, 13:54
Re: Server:Unknown Command [+rep] - by Tanush123 - 02.02.2012, 00:55
Re: Server:Unknown Command [+rep] - by Snowman12 - 02.02.2012, 01:00

Forum Jump:


Users browsing this thread: 2 Guest(s)