SA-MP Forums Archive
[Question] Inventory. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Question] Inventory. (/showthread.php?tid=543091)



[Question] Inventory. - coloN - 24.10.2014

Hey, guys. I've got a question about inventory system. I have got Textdraw inventory and there are 2 tabs. First - Player inventory, second - CAR Inventory. I want to ask about data, how to save the data, i have to use to enums or i can do it in another way.
P.S. Sorry for my bad English
What I have now:
PHP код:
enum invPL 

    
invSlot[10], // 10 - number of slots.
    
invValue[10], 
}; 
new 
InventoryPlayer[MAX_PLAYERS][invPL]; 
enum invVEH 

    
vehSlot[10], 
    
vehVal[10], 
}; 
new 
InventoryVehicle[MAX_VEHICLES][invVEH];