21.09.2016, 23:26
Essa funзгo retornara quantos arquivos estiver na pasta Houses.
PHP код:
stock GetHouses()
{
new
file[60], houses;
for(new i = 1; i <= sizeof(HouseInfo) ; i++)
{
format(file,sizeof(file), "Houses/%i.ini",i);
if(DOF2_FileExists(file))houses++;
}
return houses;
}