#Slapper

1 messages · Page 1 of 1 (latest)

low frost
#

Transfering Money doesnt work or setting a bounty.

dawn wrenBOT
#
How to ask a good question!

Be specific and include relevant details about the question upfront.
• What are you trying to accomplish?
• If you have code, which part is not working?
• What have you already tried?
• Have you searched the Bedrock Wiki?

low frost
#

dammit i cant send it it to long

#

whole system works

dawn wrenBOT
#
Formatting JSON, JS

Please format your code as code-blocks! This makes the text monospaced, and has support for syntax highlighting.

The format looks like this:

for JSON
```json
{
"example": 123
}
```

for JavaScript
```js
console.log("hello world", 123) 
```

The character used here is the backtick (U+0060 ` GRAVE ACCENT). This symbol is usually at the top left of your keyboard, occupying the tilde key (~). On mobile, it will be on the second or third page of symbols.

low frost
#

huh

#

Dibt get ut

#

oh

#

but I cant send it all

#

so how do I put it in codeblocks

rancid maple
#

.txt => .js

low frost
#

oh

stable sleetBOT
#
Program Output
/home/jail/prog.js:1
world.events.entityHit.subscribe((data) => {
^

ReferenceError: world is not defined
    at Object.<anonymous> (/home/jail/prog.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._exten
low frost
#

oh i put whole file

normal minnowBOT
#
Debug Result

There are 15 errors in this [code](#1090416925298925629 message):

world.events.entityHit.subscribed.js:1:1 - error TS2304: Cannot find name 'world'.

1 world.events.entityHit.subscribe((data) => {
  ~~~~~
world.events.entityHit.subscribed.js:10:7 - error TS2304: Cannot find name 'ActionFormData'.

10   new ActionFormData()
         ~~~~~~~~~~~~~~
world.events.entityHit.subscribed.js:13:37 - error TS2304: Cannot find name 'getScore'.

13       `Player Stats: \n§aMoney: §f${getScore(
                                       ~~~~~~~~
world.events.entityHit.subscribed.js:16:24 - error TS2304: Cannot find name 'getScore'.

16       )}\n§cKills: §f${getScore(target.name, "kills")}\n§bDeaths: §f${getScore(
                          ~~~~~~~~
world.events.entityHit.subscribed.js:16:71 - error TS2304: Cannot find name 'getScore'.

16       )}\n§cKills: §f${getScore(target.name, "kills")}\n§bDeaths: §f${getScore(
                                                                         ~~~~~~~~
world.events.entityHit.subscribed.js:20:9 - error TS2304: Cannot find name 'getScore'.

20         getScore(target.name, "kills") / getScore(target.name, "deaths")
           ~~~~~~~~
world.events.entityHit.subscribed.js:20:42 - error TS2304: Cannot find name 'getScore'.

20         getScore(target.name, "kills") / getScore(target.name, "deaths")
                                            ~~~~~~~~
world.events.entityHit.subscribed.js:21:41 - error TS2304: Cannot find name 'getScore'.

21       ).toFixed(1)}\n§6Time Played: §f${getScore(
                                           ~~~~~~~~
world.events.entityHit.subscribed.js:24:13 - error TS2304: Cannot find name 'getScore'.

24       )}h ${getScore(target.name, "min")}m ${getScore(target.name, "sec")}s\n\n`
               ~~~~~~~~
world.events.entityHit.subscribed.js:24:46 - error TS2304: Cannot find name 'getScore'.

24       )}h ${getScore(target.name, "min")}m ${getScore(target.name, "sec")}s\n\n`
                                                ~~~~~~~~
world.events.entityHit.subscribed.js:32:26 - error TS2304: Cannot find name 'world'.

32       for (let player of world.getPlayers()) {
                            ~~~~~
world.events.entityHit.subscribed.js:36:23 - error TS2304: Cannot find name 'getScore'.

36         const Money = getScore(source.name, "Money");
                         ~~~~~~~~
world.events.entityHit.subscribed.js:37:25 - error TS2304: Cannot find name 'ModalFormData'.

37         let modal = new ModalFormData();
                           ~~~~~~~~~~~~~
world.events.entityHit.subscribed.js:68:23 - error TS2304: Cannot find name 'getScore'.

68         const Money = getScore(source.name, "Money");
                         ~~~~~~~~
world.events.entityHit.subscribed.js:69:25 - error TS2304: Cannot find name 'ModalFormData'.

low frost
stable sleetBOT
#
Program Output
(node:22) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use ​`node --trace-warnings ...​` to show where the warning was created)
/home/jail/prog.js:1
import { getScore } from "../sidebar/ranks";
^
low frost
#

wym i havent used these

rancid maple
#

Ok, debugger only sees getScore error

#

So it's somethin else