#parts of the gui wont work
1 messages · Page 1 of 1 (latest)
explain your problem, send errors
alr one sec
when i enter the right code for the discord code nothing happens and i have the objectives and everything setup
??
a vid of the errors
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
i fixed all the issues
hey just for a good habit, you should use "===" instead of "=="
does it make a difference tho?
yes
oh ok
how would i be able to remove like letters and other symbols from the money transfer thing so i could only have numbers being able to be written inside the textField
@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 {
//...
}
ty
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
}
Just use isNaN() Statement
Its worse
And Thats not how String.includes() work
I already sent you the solution 