Sort enum ID
#3

Quote:
Originally Posted by Jefff
Посмотреть сообщение
1. Set all house id array to -1 before creating in OnGameModeInit
2.
pawn Код:
for(new i = 0, id; i < MAX_HOUSES; i++)
{
    if(HouseInfo[i][hID] > -1)
        HouseInfo[i][hID] = id++;
}
That's not what I mean.
Example:
I'm creating houses. Until now I have created 5 houses.
Enumerators' IDs are:
0, 1, 2, 3, 4, 5.
Now I delete House ID 3. I want that the ID 4 became ID 3, and ID 5 became ID 4, all in a loop.
For ID I mean HouseInfo[that id][....];
Reply


Messages In This Thread
Sort enum ID - by forloop - 04.06.2016, 14:01
Re: Sort enum ID - by Jefff - 04.06.2016, 14:45
Re: Sort enum ID - by forloop - 10.06.2016, 08:46

Forum Jump:


Users browsing this thread: 1 Guest(s)