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
Array in class
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#4
RE: Array in class

(04-18-2012, 01:47 PM)nemesis567 Wrote: It's not specific, and thus won't help that much: Error: Expected ;



The ; was expected where I put "HERE"



int[][] myArray"HERE"(5, int[](5));


I know very little about AngelScript arrays, but reading the AngelScript documentation, I see that arrays aren't necessarily supported by the HPL2 engine.
Your line looks okay - it should define a 5x5 array of ints with uninitialized values - but judging by the error, it seems that the compiler can only understand empty arrays. ( int[][] myArray; )


Noob scripting tutorial: From Noob to Pro

04-18-2012, 02:05 PM
Find


Messages In This Thread
Array in class - by nemesis567 - 04-18-2012, 01:00 PM
RE: Array in class - by Cranky Old Man - 04-18-2012, 01:08 PM
RE: Array in class - by nemesis567 - 04-18-2012, 01:47 PM
RE: Array in class - by Cranky Old Man - 04-18-2012, 02:05 PM
RE: Array in class - by nemesis567 - 04-18-2012, 02:41 PM
RE: Array in class - by Apjjm - 04-18-2012, 02:49 PM
RE: Array in class - by nemesis567 - 04-18-2012, 02:52 PM
RE: Array in class - by Your Computer - 04-18-2012, 03:06 PM
RE: Array in class - by nemesis567 - 04-18-2012, 03:11 PM
RE: Array in class - by Apjjm - 04-18-2012, 04:18 PM
RE: Array in class - by nemesis567 - 04-18-2012, 04:33 PM



Users browsing this thread: 4 Guest(s)