03.11.2012, 09:20
drawing and example like if i do in my player info
if i buy a house how to say if 1 of is taken by the id of the house go on to the next slot?
Код:
pHOUSES[10],
pHOUSES[10],
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;
}
}