28.12.2014, 20:21
Quote:
This thing is anonying .. and there is no LOGIC here
PHP код:
for advance help : tell me if it gives you the USAGE or no . |
pawn Код:
if(Player[id][InventorySlot1Item] == 1) return Player[id][InventorySlot1Amount] += amount;
else if(Player[id][InventorySlot2Item] == 1) return Player[id][InventorySlot2Amount] += amount;
else if(Player[id][InventorySlot3Item] == 1) return Player[id][InventorySlot3Amount] += amount;
else if(Player[id][InventorySlot4Item] == 1) return Player[id][InventorySlot4Amount] += amount;
else if(Player[id][InventorySlot5Item] == 1) return Player[id][InventorySlot5Amount] += amount;
else if(Player[id][InventorySlot6Item] == 1) return Player[id][InventorySlot6Amount] += amount;
else if(Player[id][InventorySlot7Item] == 1) return Player[id][InventorySlot7Amount] += amount;
else if(Player[id][InventorySlot8Item] == 1) return Player[id][InventorySlot8Amount] += amount;
else if(Player[id][InventorySlot9Item] == 1) return Player[id][InventorySlot9Amount] += amount;
else if(Player[id][InventorySlot10Item] == 1) return Player[id][InventorySlot10Amount] += amount;
else if(Player[id][InventorySlot11Item] == 1) return Player[id][InventorySlot11Amount] += amount;
else if(Player[id][InventorySlot12Item] == 1) return Player[id][InventorySlot12Amount] += amount;