2019-07-01, 01:29 PM
you need two variables to do that.
one(A) is to check amount of buying medkit, and the other(B) is to check amount of using medkit
if A become 3, player can`t buy more medkit. and so on, if B is not equal to A, player can`t buy more medkit.
if player can buy new medkit, A should be changed to new value.
try it!
one(A) is to check amount of buying medkit, and the other(B) is to check amount of using medkit
if A become 3, player can`t buy more medkit. and so on, if B is not equal to A, player can`t buy more medkit.
if player can buy new medkit, A should be changed to new value.
try it!