Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: AnInhumer on Wed 08/06/2005 16:49:16

Title: Different problems
Post by: AnInhumer on Wed 08/06/2005 16:49:16
How do you put an ascii into a string.

I tried one way but it put in the wrong ascii, unless 13 is a face & a note, but the reference says it's enter
Title: Re: Different problems
Post by: Ashen on Wed 08/06/2005 17:08:59
What way did you try? StrSetCharAt(string, position, char) might be what you're after.

Also, what are you trying to do? I don't think you can put 'enter' in to a string like that as it's not a character - codes 1 - 31 generate smilies and other symbols (13 being the musical note). If you're trying to insert a line break, I think you need to use '['.
Title: Re: Different problems
Post by: AnInhumer on Wed 08/06/2005 17:19:27
Thanks

That is the way I tried by the way, I also tried using a char.
But what I needed was a line break.