Results 1 to 5 of 5

Thread: is ('=') expected at line 6 Compiling failed.

  1. #1
    Join Date
    Mar 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Question is ('=') expected at line 6 Compiling failed.

    Hey everyone,

    I'm a new member learning my place here on the SRL forums. I've never been one to go around crying and posting tons of threads because I'm stuck. Always tried my best to figure it out even if it took me hours. I really don't want things handed to me on a silver platter, I do really enjoy learning Pascal and everything to do with SRL.

    Now this one has got me stumped...
    [Error] C:\Simba\Scripts\RandFletcherv1.1.2.simba(7:10): is ('=') expected at line 6
    Compiling failed.
    Here's line 6:
    const x, y, bankcolour,inventoryCounter, LogCounter: Integer;
    ANY help even the slightest tip is GREATLY appreciated. Thanks for taking the time out of your day to look at my thread.
    Last edited by Simbarules; 03-14-2013 at 04:41 AM.

  2. #2
    Join Date
    Nov 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

    Default

    Learn the difference between how variables (var) and constants (const) are declared in a script.
    If you look at some other scripts, you should get an idea of what is wrong in this script, otherwise you could take a look at one of the basic tutorials which goes over this.

  3. #3
    Join Date
    Mar 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by Neodymium View Post
    Learn the difference between how variables (var) and constants (const) are declared in a script.
    If you look at some other scripts, you should get an idea of what is wrong in this script, otherwise you could take a look at one of the basic tutorials which goes over this.
    Thank you, sir.
    Now, I have tried to compare this to multiple other scripts, 4 to be specific.
    I tried replacing const with var, gives me another error a couple lines down.. saying I need a : on this line --> TComboBox4. TComboBox5: TComboBox;

    Could you lead me in the direction of what belongs in that spot? I went to the beginners guide to SRL and read up on Const. and Variables, what am I lacking?

    Once again, thank you trying to assist me.

  4. #4
    Join Date
    Nov 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

    Default

    Thats because there are multiple variables.
    What do you do when you have a list of items in a sentence?
    Soda, Milk, Bread.
    You certainly don't separate them with periods, do you?

  5. #5
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    replace the '.' with a ','

    Forum account issues? Please send me a PM

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
  •