#parts of the gui wont work

1 messages · Page 1 of 1 (latest)

ivory island
#

please ping me :)

ashen reef
#

explain your problem, send errors

ivory island
#

alr one sec

ivory island
ashen reef
#

??

ivory island
#

a vid of the errors

ashen reef
#

moneyTransfer is a arrow function and Close doenst exists

#

define your functions in another file and import them or at the start of your script before your events

#

@ivory island

#

also

#

set your scoreboard to 0 and test again the code thing

ivory island
noble furnace
ivory island
#

does it make a difference tho?

ashen reef
#

yes

ivory island
#

oh ok

ashen reef
ivory island
ashen reef
#

@ivory island

const transfering = Number(yor modal textfield response here);

if (!transfering) {
    // Not a number or zero (0)
}
#

you should remove decimals using parseInt()

#
const transfering = parseInt(Number(yor modal textfield response here));

if (!transfering) {
    // Not a number or zero (0)
} else {
    //...
}
ivory island
#

ty

ivory island
#

wouldnt this work, or couldnt i just do this?

if (textField.includes('a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z')) {
                    player.runCommandAsync(`tellraw @s {"rawtext":[{"text":"§cOnly Use Numbers"}]}`)
                    return
                }
amber sedge
#

Just use isNaN() Statement

ashen reef
#

And Thats not how String.includes() work

#

I already sent you the solution AyakaLove