mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-02 04:23:48 +01:00
Merge pull request #2704 from Meowdoleon/patch-1
Declaring the script variable in the NS2 example
This commit is contained in:
commit
fd530ad779
@ -48,7 +48,7 @@ for (let i = 0; i < scripts.length; ++i) {
|
|||||||
```ts
|
```ts
|
||||||
// NS2:
|
// NS2:
|
||||||
const ps = ns.ps("home");
|
const ps = ns.ps("home");
|
||||||
for (script of ps) {
|
for (let script of ps) {
|
||||||
ns.tprint(`${script.filename} ${ps[i].threads}`);
|
ns.tprint(`${script.filename} ${ps[i].threads}`);
|
||||||
ns.tprint(script.args);
|
ns.tprint(script.args);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user