How to make this little feature?
#4

Make a 'flag' variable (1/0) which is initially a zero. Once something in the inventory is not 0, change the 'flag' variable's value to 1.

At the end, before formatting all check if the flag is 0 and if so print 'Inventory is empty'.
Reply


Messages In This Thread
How to make this little feature? - by MayaEU - 19.07.2016, 15:20
Re: How to make this little feature? - by BoneBreaker - 19.07.2016, 15:33
Re: How to make this little feature? - by K0P - 19.07.2016, 15:34
Re: How to make this little feature? - by GuyB790 - 19.07.2016, 15:37
Re: How to make this little feature? - by MayaEU - 19.07.2016, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)