Hi,
I tried make a script which show the amount of refinery ores and display to the LCD panel.
But i get a error for the GetItems().
I am junior C# programmer and i cant use the API well.
GetItems() wrong usage
I tried make a script which show the amount of refinery ores and display to the LCD panel.
But i get a error for the GetItems().
I am junior C# programmer and i cant use the API well.
Code:
IMyTextPanel anyagjelzo; List<IMyInventoryItem> lista; IMyRefinery forraskontener; public Program() { anyagjelzo = GridTerminalSystem.GetBlockWithName("anyagjelzo") as IMyTextPanel; lista = new List<IMyInventoryItem>(); forraskontener = GridTerminalSystem.GetBlockWithName("refinery") as...