SRL Archive - General Botting Help

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


Simbarules

2013-03-14 00:39:34

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…:duh:
[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.

Neodymium

2013-03-14 00:49:34

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.

Simbarules

2013-03-14 00:57:27

From: Neodymium
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.

Neodymium

2013-03-14 01:56:59

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?

Justin

2013-03-14 02:05:03

replace the '.' with a ','