![]() Ns.disableLog("getServerRequiredHackingLevel")įor(var n=0 n ns. ![]() ![]() if anyone knows how to compare or put in order the lists, please tell me /** ns **/ is there a way to make a variable remain unchanged during the code process? i copy and paste the code text below: All you need to do is check if the value is defined before trying to use it. I have this code im trying to do for TIX control market and i cant seem to assign values in the strings like i want to. script), it follows Javascirpt a little better and is easier to reason about. Two solutions, change the code or set ORIGIN:1 at top of the sheet. You have set E as a three element vector and refered to it as E1, E2, and E3 but by default it is E0,E1,E2. Arrays in JS are associative arrays that can grow to any size, they are not fixed sets of contiguous memory like in other languages. Use VS Code with Bitburner API Server (see github link below). The default is zero based arrays unless you set origin to 1. ![]() i think it is because the code sets as var mm (max money) and smm (server with max money) only at the end, where obviously h and k will be the last two elements of the list. You asked for an index and got back undefined, this is not strange in JavaScript. bitburner/markdown/bitburner.ns.exec.md Go to file Snarling Revert 'Remove markdown from git tracking ( 139 )' Latest commit on 2 contributors 81 lines (54 sloc) 2.96 KB Raw Blame Home > bitburner > NS > exec NS.exec () method Start another script on any server. but i encountered a problem: at the end of the code, it tells me that the best one is omega-net. I wrote a code to analyze all the available servers i can connect to, looking for the one with the most value: "MaxMoneyAvailable". ![]()
0 Comments
Leave a Reply. |