19.10.2011, 11:10
Just to clear things up:
I have a data saving system, using DjSon.
I have en enum which contains BagSlot1, BagSlot2 and so on.
Lets say that i want to add an item to bag slot 1, i use the variable "PlayerInfo[playerid][pBagSlot1]"
My question: What is the easiest way to add an item? Is it by making item IDs, like if a cheque is ID 3, and then do "PlayerInfo[playerid][pBagSlot1] = 3"
Or is there an easier way?
Thank you.
I have a data saving system, using DjSon.
I have en enum which contains BagSlot1, BagSlot2 and so on.
Lets say that i want to add an item to bag slot 1, i use the variable "PlayerInfo[playerid][pBagSlot1]"
My question: What is the easiest way to add an item? Is it by making item IDs, like if a cheque is ID 3, and then do "PlayerInfo[playerid][pBagSlot1] = 3"
Or is there an easier way?
Thank you.