Asenna Steam
kirjaudu sisään
|
kieli
简体中文 (yksinkertaistettu kiina)
繁體中文 (perinteinen kiina)
日本語 (japani)
한국어 (korea)
ไทย (thai)
български (bulgaria)
Čeština (tšekki)
Dansk (tanska)
Deutsch (saksa)
English (englanti)
Español – España (espanja – Espanja)
Español – Latinoamérica (espanja – Lat. Am.)
Ελληνικά (kreikka)
Français (ranska)
Italiano (italia)
Bahasa Indonesia (indonesia)
Magyar (unkari)
Nederlands (hollanti)
Norsk (norja)
Polski (puola)
Português (portugali – Portugali)
Português – Brasil (portugali – Brasilia)
Română (romania)
Русский (venäjä)
Svenska (ruotsi)
Türkçe (turkki)
Tiếng Việt (vietnam)
Українська (ukraina)
Ilmoita käännösongelmasta
Line 38 :
'System.Collections.Generic.List<Sandbox.ModAPI.Ingame.
IMyTerminalBlock>' does not contain a definition for
'GetActionWithName' and no extension method
'GetActionWithName' accepting a first argument of type
'System.Collections.Generic.List<Sandbox.ModAPI.Ingame.
IMyTerminalBlock>' could be found ,are you missing a
using directive or an assembly reference?
to this;
You need the [i] part. That code is contained in something called a for loop[msdn.microsoft.com], essentially it means "for" each item in a list go through one at a time (until the list is completed) executing some code (in this case the code to close all the doors). That [i] is a reference to which item in the list we want to execute code on. Each time the loop runs it adds 1 to the value of i, so it increments through the list onto the next item. So for example this;
In this example I have used 1 instead of i. This would execute that code against the second item in the list (because just to add confusion technically 0 is the first item in a list, 1 is second, 2 is third and so on). If you put 2 you would close the third door in the list and so on.
I hope this explains it!