[House] Get New House ID
#3

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;
}
Reply


Messages In This Thread
[House] Get New House ID - by anou1 - 08.03.2014, 20:53
Re: [House] Get New House ID - by PowerPC603 - 08.03.2014, 21:05
Re: [House] Get New House ID - by Mriss - 08.03.2014, 21:06
Re: [House] Get New House ID - by anou1 - 08.03.2014, 21:25
Re : [House] Get New House ID - by anou1 - 09.03.2014, 12:45
Respuesta: [House] Get New House ID - by CuervO - 09.03.2014, 15:12
Re : [House] Get New House ID - by anou1 - 09.03.2014, 16:01

Forum Jump:


Users browsing this thread: 2 Guest(s)