21.07.2013, 11:10
I runned some tests and i changed MAX_SLOTS to Hasclothes[playerid]
Now it works fine, only i noticed a new problem.
So when i have this items and slots used.
And when i remove slot 1 it returns as:
Code:
Thats good but when i use the command /addclothes 2 40 (/addclothes slotid clothesid) it says the slot is already used.
So that means that ClothesItems[playerid][2] still exists.
How can i fix this?
Now it works fine, only i noticed a new problem.
So when i have this items and slots used.
Код:
slot 0|item id 10 slot 1|item id 20 slot 2|item id 30
Code:
Код:
slot 0|item id 10 slot 1|item id 30
Код:
stock IsSlotUsed(playerid,slotid) { if(ClothesItems[playerid][slotid]==0) { return 0; } else return 1; }
So that means that ClothesItems[playerid][2] still exists.
How can i fix this?