Advertisement
2629881

Untitled

Jul 30th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1.       public void AddItem(string item)
  2.         {
  3.             for (int i = 0; i < arrayItems.Length; i++)
  4.             if (arrayItems[i] == "")
  5.             {
  6.                 arrayItems[i] = item;
  7.             }            
  8.             Console.WriteLine("{0} has been added to your inventory", item);
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement