Log in

View Full Version : Global Variables issue



laakerules
01-14-2012, 10:32 PM
Okay i currently am making the Global variable. ill have questions earlier but, for now i am making the variable of AttackingOption

it looks like

AttackingOption: Array;

But its telling me it needs an of statement there, this is my first time making a variable like that rather than just

AttackingOption = 'Goblin';

So how would i fix that array for it to work?

Zyt3x
01-14-2012, 11:30 PM
If you want it to be an array of strings, you can call it "array of String" or "TStringArray" or if you want to set the length of the array you can do "array [0..24] of String" where you edit 24 to be the desired highest index, and 0 to be the desired lowest index

laakerules
01-15-2012, 12:11 AM
Thanks, got it working though.