AGS tidbits & snippets: Difference between revisions

Added new info about String arrays
m (Removed <pre> tags)
(Added new info about String arrays)
Line 165: Line 165:
:''Could be used instead of room properties if you need to change them at run-time.''
:''Could be used instead of room properties if you need to change them at run-time.''
----
----
'''SSH''': "'''Strings in structs''' have to be declared as :''char desc [256];''"
'''SSH''': "'''Strings in structs''' have to be declared as ''char desc [256];''"
([http://www.bigbluecup.com/yabb/index.php?topic=12418.msg147974#msg147974 Thread])
([http://www.bigbluecup.com/yabb/index.php?topic=12418.msg147974#msg147974 Thread])
:''I think it's 200, the AGS maximum string length:''
:''I think it's 200, the AGS maximum string length:''
Line 171: Line 171:
   char mystring [200];
   char mystring [200];
  };
  };
:''Since you can't make arrays from string variables, you can make it from such a struct instead.''
:<del>''Since you can't make arrays from string variables, you can make it from such a struct instead.''</del> (''AGS v2.71's new String type works as an array.'')
----
----
'''Scorpiorus''':
'''Scorpiorus''':
0

edits