Inventory slots.
#9

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.
Код:
slot 0|item id 10
slot 1|item id 20
slot 2|item id 30
And when i remove slot 1 it returns as:
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;
}
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?
Reply


Messages In This Thread
Inventory slots. - by Admigo - 21.07.2013, 09:36
Re: Inventory slots. - by Misiur - 21.07.2013, 09:57
Re: Inventory slots. - by Admigo - 21.07.2013, 10:12
Re: Inventory slots. - by Misiur - 21.07.2013, 10:27
Re: Inventory slots. - by Admigo - 21.07.2013, 10:40
Re: Inventory slots. - by Misiur - 21.07.2013, 10:51
Re: Inventory slots. - by Admigo - 21.07.2013, 10:58
Re: Inventory slots. - by Misiur - 21.07.2013, 11:01
Re: Inventory slots. - by Admigo - 21.07.2013, 11:10
Re: Inventory slots. - by Misiur - 21.07.2013, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)