#GUI not working

1 messages · Page 1 of 1 (latest)

versed timber
ruby nimbusBOT
#
Debug Result

There are 5 errors in this [code](#1117779572948221982 message):

message.js:20:7 - error TS2339: Property 'events' does not exist on type 'World'.

20 world.events.beforeEvents.ItemUse.subscribe(data => {
         ~~~~~~

``````ansi
message.js:106:40 - error TS2538: Type 'false' cannot be used as an index type.

106         const selectedPlayer = players[dropdown];
                                           ~~~~~~~~

``````ansi
message.js:106:40 - error TS2538: Type 'true' cannot be used as an index type.

106         const selectedPlayer = players[dropdown];
                                           ~~~~~~~~

``````ansi
message.js:111:25 - error TS2339: Property 'includes' does not exist on type 'string | number | boolean'.
  Property 'includes' does not exist on type 'number'.

111         } if (textField.includes("-")) {
                            ~~~~~~~~

``````ansi
message.js:115:13 - error TS2365: Operator '<' cannot be applied to types 'number' and 'string | number | boolean'.

115         if (getScore('Money', player) < textField) {
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

versed timber
#

Can someone please help me dubug this template?

#

world.beforeEvents.itemUse.subscribe((data) => {

#

So this fixes the top one

#

What about others?