IsSlotUsed?
#1

Hi all,

Is it possible to make a function to Detect if a slotisused like for a inventory system?
Like:
Код:
Slot 1 = used
Slot 2 = used
Slot 3 = Unused.
Slot 4 = used so the item will go to slot 3
Any tips how i can make this?

Admigo
Reply
#2

pawn Код:
new Sots[10];

for(new i; i < sizeof(Slots); i++)
{
if(Slot[i] == 0)//If Free
{
Slot[i] = 1;//Start to use
break;
}
}
Reply
#3

Nvm. Read it wrongly.
My mistake.
Reply
#4

Quote:
Originally Posted by ikey07
Посмотреть сообщение
pawn Код:
new Sots[10];

for(new i; i < sizeof(Slots); i++)
{
if(Slot[i] == 0)//If Free
{
Slot[i] = 1;//Start to use
break;
}
}
Is it possible to add playerid like :
Код:
IsSlotUsed[playerid][slotid]=clothesid;//so i can detect if the player has used that slot with that clothesid
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)