V3: 2D Struct Arrays hate me.
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
CrazyAznGamer

'Expecting ';', but got '[' instead'
The compiler spits an error at me when I do this:

struct Enemy
{
//blablabla
}
Enemy masterenemy[MAXENEMYTYPES][MAXENEMYTINTS];
//MAXENEMYTYPES and MAXENEMYTINTS has been defined, by the way.

Either I'm doing something wrong, or 2D struct Arrays are out to get me. =/

Posted on 2005-02-20 12:34:54

RageCage

you cant do 2D arrays with struct defined variables =/

Posted on 2005-02-20 12:36:08

CrazyAznGamer

-_- Oh.

Posted on 2005-02-20 13:13:09

Bitmonkey

Even though it may never happen, I think that's something that might be a good thing to add to a future version of Verge. And there's everyone's favorite harpin' subject, Floats. But I also think that being able to define arrays with lists like in C would be a great help. Like:

int Array[10];
Array={0,1,2,3,4,5,6,7,8,9};

and:

int array[2][2];
array={{0,1},{2,3}};

it would probably be a big bother, but that's my two bits :P.

Posted on 2005-02-23 23:18:51


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.