Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

GetItems() wrong usage

$
0
0
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.

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...
GetItems() wrong usage

Viewing all articles
Browse latest Browse all 645

Trending Articles