[OPU question] Which one is better?
#1

pawn Код:
public OnPlayerUpdate(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerInRangeOfPoint(i, 10, 7.6219, 1522.2793, 21.0712))
        {
            //Something
        }
    }
    return 1;
}

public OnPlayerUpdate(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 10, 7.6219, 1522.2793, 21.0712))
    {
        //Something
    }
    return 1;
}
With or without loop?
Reply


Messages In This Thread
[OPU question] Which one is better? - by newbienoob - 06.04.2013, 13:33
Re: [OPU question] Which one is better? - by iJumbo - 06.04.2013, 13:35
Re: [OPU question] Which one is better? - by MP2 - 06.04.2013, 13:45
Re: [OPU question] Which one is better? - by newbienoob - 06.04.2013, 13:53
Re: [OPU question] Which one is better? - by Threshold - 06.04.2013, 13:56
Re: [OPU question] Which one is better? - by newbienoob - 06.04.2013, 14:03
Re: [OPU question] Which one is better? - by SuperViper - 06.04.2013, 14:07
Re: [OPU question] Which one is better? - by newbienoob - 06.04.2013, 14:15
Re: [OPU question] Which one is better? - by MP2 - 06.04.2013, 14:58

Forum Jump:


Users browsing this thread: 2 Guest(s)