#dude /gift doesnt work for me only
43 messages · Page 1 of 1 (latest)
it work normally when try /gift osk
but when try /gift 5han it doesnt work bcuz system recognize its /gift 5
💀
is this just javascript jank lmao
yes
So I presume that TETR.IO executes parseInt on a parameter, then if it's NaN, it thinks it's a string and that's a playername.
Number(string) does not have this issue
Of course it parses strings containing numbers fine
So Math.floor(Number(string)) should be a drop-in replacement
Did you mean you are unable to give yourself supporter?
im gonna be that guy but how tf is masturbeast not inappropriate
can also confirm this also happens with people starting with a number not called 5han
i mean soandsonword constantly gets through 
There's a problem with BOTH parseInt and Number():
Nicks that contain only numbers exist.
So this command will roll 250 players (as that's the limit) instead of targetting player 7579
So maybe this should be implemented as a separate command (like /giftrandom)?
it's not like you can roll seven thousand players in the first place (it just caps out to 250)
maybe the limit could be lowered to 99 so there's absolutely no confusion lol (do people really roll 250?)
yes i know it still parses that as a number of people to roll
qp2 might be a decent reason for people to roll >99
yeah but do they actually is the question
yeah i havent seen any huge bombs lately
does this still cause an issue with names like 007 or nah
I think \"[name]\" will help the system tell the difference.
wat
Name is a string
I mean you can quotation mark around the name (eg /gift "10008" instead of /gift 10008)
yeah but that's a needless compromise
shall be fixed next update, itll make it so if a user is in the room with such a name itll always prefer that
based
Let me gift 112 people. why am I only allowed to gift a user called 112 
yeah what if you could add a # to override the username 
typescript doesn’t fix this
ok what would
