|
//Sorry for posting so many errors, but I need these scripts for my game. using System.Collections; namespace Stats { public static class UpdateLists { } } // I am getting a CS0118 error at line 9 public static void UpdateInventory(Stats Stat) 'Stats is a namespace, but a 'type' was expected is what the error says.
(comments are locked)
|
|
It is just as it says. Stats is a namespace, that is a kind of "directory of classes". In your code, you use Stats as a class. To do so, you need to create a class called Stats. You should also learn a bit more about the basics of C#.
(comments are locked)
|
