08.03.2014, 21:06
You will need something like this. NOTE, dont use this until u've edited it to your configuration, e.g: YIni or MySQL
pawn Код:
stock GetNextHouseID()
{
for(new i = 0; i < MAX_HOUSES; i++)
{
if(fexist(HousePath(i))) continue;
return i;
}
return -1;
}