02.05.2017, 06:53
PHP код:
print("search again.");
return FindBusiness(playerid);
PHP код:
FindBusiness(playerid)
{
new i = random(ValidBusiness); // Total business
if(BusinessData[i][bizExists] && BusinessData[i][bizType] >= 1 && BusinessData[i][bizType] <= 4 && GetPlayerVirtualWorld(playerid) == BusinessData[i][bizExteriorVW] && GetPlayerInterior(playerid) == BusinessData[i][bizExterior])
{
if (BusinessData[i][bizDeliver][0] != 0.0 && BusinessData[i][bizDeliver][1] != 0.0 && BusinessData[i][bizDeliver][2] != 0.0)
{
print("found!");
return i;
}
}
else
{
print("search again.");
return FindBusiness(playerid);
}
}