01.04.2017, 15:31
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]));//
{
return houseid;
}
}
return 0;
}
Why must return 0; in this scipt?
{
for(new houseid = 0; houseid < MAX_HOUSES; houseid ++)
{
if(IsPlayerInRangeOfPoint(playerid, Range, House[houseid][hExtPosX], House[houseid][hExtPosY], House[houseid][hExtPosZ]));//
{
return houseid;
}
}
return 0;
}
Why must return 0; in this scipt?