Question on loops.
#1

Hello.

I have a question about loops:

If I have a code like this:

pawn Код:
for(new i = 0; i < sizeof(Obj); i++)
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, Obj[i][PosX], Obj[i][PosY], Obj[i][PosZ])
    {
        // In object.
    }  
    else
    {
        // Not in object.
    }
}
To display the error message if the player is not on the object, I do:

A return, a break ...?

Thx
Reply


Messages In This Thread
Question on loops. - by Baltimore - 26.10.2014, 21:19
Respuesta: Question on loops. - by aoEXE - 26.10.2014, 21:28
Re : Question on loops. - by Baltimore - 26.10.2014, 21:33
Re: Re : Question on loops. - by Dignity - 26.10.2014, 21:41
Re : Question on loops. - by Baltimore - 26.10.2014, 21:45
Re: Question on loops. - by Dignity - 26.10.2014, 21:47
Re: Re : Question on loops. - by Anzipane - 26.10.2014, 21:47

Forum Jump:


Users browsing this thread: 1 Guest(s)