OnToTheNext
#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


Messages In This Thread
OnToTheNext - by Glad2BeHere - 03.11.2012, 09:20
Re: OnToTheNext - by Niko_boy - 03.11.2012, 09:36
Re: OnToTheNext - by Glad2BeHere - 03.11.2012, 09:40

Forum Jump:


Users browsing this thread: 2 Guest(s)