Frictional Games Forum (read-only)

Full Version: String Arrays?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Are they possible in Amnesia? Looking at the AngelScript documentation (well the google cache anyways, site seems to be down at the time of me writing this), is says the syntax is something like:

PHP Code:
array<stringname = {"string1","string2"

However, when I do this, I get an error: main (145, 14): ERR: Expected '('

Just to be clear, 145 is the line where I am declaring the array, the exact line is:
PHP Code:
    array<stringsound = {"29_wind.snt""general_wind_blow.snt""scare_wind.snt""scare_wind_reverse.snt"}; 

Also, if there's a better way to accomplish what I'm trying to do, let me know.
The AngelScript documentation has been updated to fit the latest version of AngelScript. Amnesia, however, uses an older version of AngelScript, therefore requires different syntax.

The proper way is
PHP Code:
string[] name = {"value1""value2" /* ... */}; 
(08-13-2012, 09:06 PM)Your Computer Wrote: [ -> ]The AngelScript documentation has been updated to fit the latest version of AngelScript. Amnesia, however, uses an older version of AngelScript, therefore requires different syntax.

The proper way is
PHP Code:
string[] name = {"value1""value2" /* ... */}; 
Thanks, works perfectly.