The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String Arrays?
Fearlessagent Offline
Junior Member

Posts: 12
Threads: 2
Joined: Jul 2012
Reputation: 1
#1
String Arrays?

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: (Select All)
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: (Select All)
    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.
(This post was last modified: 08-13-2012, 09:43 PM by Fearlessagent.)
08-13-2012, 08:10 PM
Find


Messages In This Thread
String Arrays? - by Fearlessagent - 08-13-2012, 08:10 PM
RE: String Arrays? - by Your Computer - 08-13-2012, 09:06 PM
RE: String Arrays? - by Fearlessagent - 08-13-2012, 09:43 PM



Users browsing this thread: 1 Guest(s)