Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: stuh505 on Sat 10/04/2004 03:17:34

Title: Beginner question: how to define array in AGS
Post by: stuh505 on Sat 10/04/2004 03:17:34
what the heck.  i tried:

testArray[5];

int testArray[5];

int testArray[5] = 0;

int testArray[5] = {0,0,0,0,0};

int testArray[5] = [0,0,0,0,0];

int testArray = {0,0,0,0,0}

int testArray = [0,0,0,0,0];

so how do u do it?



ahhh ok, I figured it out.  the problem was not in the syntax but in the order...I guess the order of the functions in the global script is important.  That is a real pain...something they should change for the next version of AGS; allow functions to be declared SEPARATELY from their definitions, as well as include files.