Lots of Errors
#4

Almost perfect, but if you don't need any conditional logic, just use loop:
pawn Код:
CMD:enter(playerid, params[])
{
    for(new i = 0; i != sizeof EnterAndExit; ++i) {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, EnterAndExit[i][EnterPointX], EnterAndExit[i][EnterPointY], EnterAndExit[i][EnterPointZ]))
        {
            SetPlayerPos(playerid, 246.8042, 63.3659, 1003.6406);
            SetPlayerInterior(playerid, 6);
            return 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
Lots of Errors - by MechaTech - 12.09.2013, 06:36
Re: Lots of Errors - by Misiur - 12.09.2013, 07:35
Respuesta: Re: Lots of Errors - by MechaTech - 12.09.2013, 07:38
Re: Lots of Errors - by Misiur - 12.09.2013, 07:43
Respuesta: Re: Lots of Errors - by MechaTech - 12.09.2013, 07:46

Forum Jump:


Users browsing this thread: 1 Guest(s)