Quote:
Originally Posted by naruto66620
You should add a check to see if the player's inventory is not full.
|
Correct, going to add this once I am home from work.
Actually i thought, it would then output the fail message since create item should return false?
I did not check whether CreateItem returns false when the inventory is full.. But you are right. A special message to the user that the inventory is full and that is the reason of failure makes sense.
Thanks
Edit: I checked that out, if the inventory is full, the Fail message will appear, since the CreateItem function returns false then.
So if someone wants to make an extra message that the inventory is full, feel free to do that.