Results 1 to 3 of 3

Thread: Global Variables issue

  1. #1
    Join Date
    Dec 2011
    Posts
    1,162
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Global Variables issue

    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?

  2. #2
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    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

  3. #3
    Join Date
    Dec 2011
    Posts
    1,162
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, got it working though.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •