Jump to content


Photo

please help! how do i display # in a string


  • Please log in to reply
1 reply to this topic

#1 rater193

rater193

    GMC Member

  • GMC Member
  • 92 posts
  • Version:GM:Studio

Posted 19 August 2012 - 03:19 PM

ive been trying to display the pound"#" symbol, because im working on a mmo, and if players mis-use that, it will spam the crap out of people, right now my temporary fix for it, is to draw the string, with the line hight of 0, so it merges the string onto 1 line, but i REALLY want to fix that, so players can use "#"
btw, im using game maker 8, not 8.1, because i like the feel of 8

Edited by rater193, 19 August 2012 - 03:20 PM.

  • 0

#2 TsukaYuriko

TsukaYuriko

    GMC Member

  • GMC Member
  • 510 posts
  • Version:GM:Studio

Posted 19 August 2012 - 03:35 PM

Add a backslash in front of all #s using string_replace_all (replace # with \#). That way, the actual character will be displayed.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users