Jump to content


Photo

How To Have Apostrophe In A Message?


  • Please log in to reply
5 replies to this topic

#1 greatchase

greatchase

    GMC Member

  • New Member
  • 194 posts

Posted 24 March 2007 - 03:36 PM

I am programming in GML, and I ran into the problem that every time I want a message to pop up, I couldn't use an apostrophe because it thought I was ending the message. So then the rest of the string would pop up as an error :D

Is there anyway around this?

BTW: This is an apostrophe ------> '

Edited by greatchase, 24 March 2007 - 03:37 PM.

  • 0

#2 toenail

toenail

    Mindtrick Forefront

  • New Member
  • 851 posts

Posted 24 March 2007 - 03:38 PM

show_message("Hello my name's Joseph Kemp!");

Simple :D

~toenail
  • 0

#3 greatchase

greatchase

    GMC Member

  • New Member
  • 194 posts

Posted 24 March 2007 - 05:31 PM

Lol!!! I feel like an idiot :unsure: :GM058: :GM058: Thanks
  • 0

#4 furyhunter600

furyhunter600

    GMC Member

  • New Member
  • 39 posts

Posted 24 March 2007 - 07:22 PM

Logically, you could do something like:

show_message('Hi, my name' + "'" + 's Joseph Kemp!');
  • 0

#5 Lord Tim

Lord Tim

    GMC Member

  • New Member
  • 3 posts

Posted 24 March 2007 - 08:05 PM

Isn't there something for GML so you can do " can\'t"?
  • 0

#6 greatchase

greatchase

    GMC Member

  • New Member
  • 194 posts

Posted 25 March 2007 - 12:48 AM

Thanks every one. I have solved the problem!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users