Way20
Well-Known Member
- Joined
- Sep 29, 2014
- Messages
- 205
- Solutions
- 3
- Reaction score
- 79
On my server when the player doens't have the storage, instead of returning -1 its returning nil, so if I use
I got this error.
I think that is source related, can anyone give me a hint to where I should look?
Code:
math.max(0, getCreatureStorage(cid, storage))
Code:
bad argument #3 to 'max' (number expected, got nil)
I think that is source related, can anyone give me a hint to where I should look?
Last edited: