Enter 1st house but not 2n
#6

PHP код:
stock GetHouseID(playerid)
{
    for(new 
i=1i<MAX_HOUSESi++)
    {
        if(
IsPlayerInRangeOfPoint(playerid2HouseInfo[i][XExit], HouseInfo[i][YExit], HouseInfo[i][ZExit]))
        {
            return 
i;
        }
        else if(
IsPlayerInRangeOfPoint(playerid2HouseInfo[i][XEnt], HouseInfo[i][YEnt], HouseInfo[i][ZEnt]))
        {
            return 
i;
        }
    }
    return 
INVALID_HOUSE_ID;

Reply


Messages In This Thread
Enter 1st house but not 2n - by vassilis - 07.12.2015, 15:16
Re: Enter 1st house but not 2n - by Yousha - 07.12.2015, 15:23
Re: Enter 1st house but not 2n - by jlalt - 07.12.2015, 15:29
Re: Enter 1st house but not 2nd - by vassilis - 07.12.2015, 15:31
Re: Enter 1st house but not 2nd - by jlalt - 07.12.2015, 15:43
Re: Enter 1st house but not 2n - by vassilis - 07.12.2015, 15:50
Re: Enter 1st house but not 2n - by jlalt - 07.12.2015, 15:58
Re: Enter 1st house but not 2n - by vassilis - 07.12.2015, 16:10
Re: Enter 1st house but not 2n - by jlalt - 07.12.2015, 16:13
Re: Enter 1st house but not 2n - by vassilis - 07.12.2015, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)