Creating a stock 'IfPlayerIsInRangeOfHouse'
#5

Ahh righto, thanks all for your responses, may I ask what is this and how does it work?
pawn Код:
for( new houseid = 0; houseid < MAX_HOUSES; houseid ++ )
as far as I know it's a loop or something, whether that's correct or not I have no idea.

Also Costel
This is the error I got
pawn Код:
(4600) : error 036: empty statement
Line 4600
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, Range, House[houseid][hExtPosX], House[houseid][hExtPosY], House[houseid][hExtPosZ]));
surrounding code
pawn Код:
stock IsPlayerInRangeOfAnyHouse(playerid, Float:Range)
{
    for(new houseid = 0; houseid < MAX_HOUSES; houseid ++)
    {
        if(IsPlayerInRangeOfPoint(playerid, Range, House[houseid][hExtPosX], House[houseid][hExtPosY], House[houseid][hExtPosZ]));// <--- Line 4600
        {
            return houseid;
        }
    }
    return 0;
}
Reply


Messages In This Thread
Creating a stock 'IfPlayerIsInRangeOfHouse' - by Deal-or-die - 13.09.2012, 15:53
AW: Creating a stock 'IfPlayerIsInRangeOfHouse' - by BiosMarcel - 13.09.2012, 15:56
Re: Creating a stock 'IfPlayerIsInRangeOfHouse' - by ddnbb - 13.09.2012, 15:57
Re: Creating a stock 'IfPlayerIsInRangeOfHouse' - by IstuntmanI - 13.09.2012, 15:58
Re: Creating a stock 'IfPlayerIsInRangeOfHouse' - by Deal-or-die - 13.09.2012, 16:18
Re: Creating a stock 'IfPlayerIsInRangeOfHouse' - by Emmet_ - 13.09.2012, 16:21
Re: Creating a stock 'IfPlayerIsInRangeOfHouse' - by Deal-or-die - 13.09.2012, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)