21.07.2013, 10:12
Quote:
If you have foreach include, read the section about custom iterators. Otherwise:
pawn Код:
2. Move all items to -1 slot 3. Decrease number of clothes Remember to update HasClothes on addition/removal of clothes. There is also fancy way using pointer swapping (introduced by Slice https://sampforum.blast.hk/showthread.php?tid=343172 ), but I think it won't be necessary. |
Код:
slot 1|item id 10 slot 3|item id 30
Код:
slot 1|item id 10 slot 2|item id 30
EDIT:
I tried to remove slot 1 and it returns as:
Код:
slot 1|item id 20 slot 2|item id 20 slot 3|item id 30
Код:
slot 1|item id 20 slot 2|item id 30