OnToTheNext
#1

drawing and example like if i do in my player info
Код:
pHOUSES[10],
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?
Reply
#2

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

yeah i have MAX_HOUSES
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)