19.02.2017, 10:53
How do you expect us to help you if you don't have code?
Something like this
PHP код:
IsSlotEmpty(playerid, index) {
switch(index) {
case 1: return plyInfo[playerid][pSlot1] == 0;
case 2: return plyInfo[playerid][pSlot2] == 0;
case 3: return plyInfo[playerid][pSlot3] == 0;
case 4: return plyInfo[playerid][pSlot4] == 0;
case 5: return plyInfo[playerid][pSlot5] == 0;
case 6: return plyInfo[playerid][pSlot6] == 0;
default: return false;
}
}