Solved: More than one String

Started by Martyn, Thu 08/10/2015 13:33:38

Previous topic - Next topic

Martyn

Code: ags
Display("%s%s%s%s%s", char_a, char_b, char_c, char_d, char_e);

How can I write it so I get it into a string?
Like this:
Code: ags
string = char_a,char_b,char_c,char_d.... 

is it going?

Martyn

I solved it myself, sorry!

Code: ags
string= String.Format("%s%s%s%s%s", char_a, char_b, char_c, char_d, char_e);

Monsieur OUXX

A complement, to avoid issues caused by escaping characters, and managing Strings as well as Display properly : http://www.adventuregamestudio.co.uk/wiki/Escaping_characters
 

SMF spam blocked by CleanTalk