Acerd Posted May 10, 2016 Posted May 10, 2016 trying to make a muling script and for some reason it cant find the player with a name like "Bla Bla" (with spaces) but it will find the player with a name like "BlaBla" (without spaces) , anyone know how to fix this?
Khaleesi Posted May 10, 2016 Posted May 10, 2016 trying to make a muling script and for some reason it cant find the player with a name like "Bla Bla" (with spaces) but it will find the player with a name like "BlaBla" (without spaces) , anyone know how to fix this? Runescape uses a "Non-breaking" space instead of a normal space ^^
Explv Posted May 10, 2016 Posted May 10, 2016 (edited) trying to make a muling script and for some reason it cant find the player with a name like "Bla Bla" (with spaces) but it will find the player with a name like "BlaBla" (without spaces) , anyone know how to fix this? Runescape uses non breaking spaces, so you need to replace them: player.getName().replace('\u00A0', ' '); Edited May 10, 2016 by Explv 3