03.11.2012, 09:36
loop through all houses and u must have assigned a value to each id by default say -1 or a boolean variable/array telling if slow is used e.g.
pawn Код:
for( new i; i < TOTALNUMBERHOUSE; i++ )
{
if( pHouseUsed[i] == true /* or != -1 etc.. */ )
{
/*return i; // if a stock or use this i as next slot id directly */
break;
}
}