Acerd Posted May 10, 2016 Share 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? Quote Link to comment Share on other sites More sharing options...
Muffins Posted May 10, 2016 Share Posted May 10, 2016 Fruity had this same issue, might want to ask him Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted May 10, 2016 Share 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 ^^ Quote Link to comment Share on other sites More sharing options...
Explv Posted May 10, 2016 Share 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 Quote Link to comment Share on other sites More sharing options...