interior problem
#6

I don't know if it was the cause, I changed position of

PlayerInfo[playerid][Inter] = -1;

Before:
pawn Код:
CMD:exit(playerid,params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, InterInfo[PlayerInfo[playerid][Inter]][IntPos][0], InterInfo[PlayerInfo[playerid][Inter]][IntPos][1], InterInfo[PlayerInfo[playerid][Inter]][IntPos][2]))
    {
        SendClientMessage(playerid, BLUE, "You have left the interior successfully. /enter to enter it.");
        PlayerInfo[playerid][Inter] = -1;
        SetPlayerPos(playerid, InterInfo[PlayerInfo[playerid][Inter]][EnterPos][0], InterInfo[PlayerInfo[playerid][Inter]][EnterPos][1], InterInfo[PlayerInfo[playerid][Inter]][EnterPos][2]);
        SetPlayerInterior(playerid, 0);
    }
    else SendClientMessage(playerid, RED, "You are not near to an interior exit.");
    return 1;
}
After:
pawn Код:
CMD:exit(playerid,params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, InterInfo[PlayerInfo[playerid][Inter]][IntPos][0], InterInfo[PlayerInfo[playerid][Inter]][IntPos][1], InterInfo[PlayerInfo[playerid][Inter]][IntPos][2]))
    {
        SendClientMessage(playerid, BLUE, "You have left the interior successfully. /enter to enter it.");
        SetPlayerPos(playerid, InterInfo[PlayerInfo[playerid][Inter]][EnterPos][0], InterInfo[PlayerInfo[playerid][Inter]][EnterPos][1], InterInfo[PlayerInfo[playerid][Inter]][EnterPos][2]);
        SetPlayerInterior(playerid, 0);
        PlayerInfo[playerid][Inter] = -1;
    }
    else SendClientMessage(playerid, RED, "You are not near to an interior exit.");
    return 1;
}
Reply


Messages In This Thread
interior problem - by LocMax - 23.02.2014, 18:59
Re: interior problem - by LocMax - 23.02.2014, 19:02
Re: interior problem - by LocMax - 23.02.2014, 19:11
Re: interior problem - by FilesMAker - 23.02.2014, 19:18
Re: interior problem - by RealHobo009 - 23.02.2014, 19:30
Re: interior problem - by LocMax - 23.02.2014, 19:33
Re: interior problem - by RealHobo009 - 23.02.2014, 19:36
Re: interior problem - by FilesMAker - 23.02.2014, 19:42
Re: interior problem - by RealHobo009 - 23.02.2014, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)