Log in

View Full Version : Keep getting this error...



Asalci
02-18-2012, 03:34 AM
Whenever i try to test my script i keep getting this error

[Error] C:\Simba\Includes\srl/srl/misc/smart.simba(2:1): 'BEGIN' expected at line 1

I dont understand why I am getting this error, help?

Ashaman88
02-18-2012, 04:15 AM
what does your code look like?

Asalci
02-18-2012, 04:22 AM
program New;
{$DEFINE SMART}
{$i srl/srl.simba}

whenever I put anything in the includes having to do with smart i get the error

Ashaman88
02-18-2012, 04:44 AM
do other peoples scripts work when you try to run them?

if they do you are probably missing your main loop

something like

begin
ClearDebug;
SetupSRL;
DeclarePlayers;
LoginPlayer;
repeat
//(call your functions)
until// (whatever)
end.

Asalci
02-18-2012, 05:07 AM
I tried running someone elses script that worked for me earlier today and got the same error, I think something got messed up in my C:\Simba\Includes\SRL/SRL/misc/smart.simba

edit. when i try compliling just the C:\Simba\Includes\SRL/SRL/misc/smart.simba script i get the error [Error] (1:1): Unexpected end of file at line 0

Caotom
02-18-2012, 05:14 AM
I tried running someone elses script that worked for me earlier today and got the same error, I think something got messed up in my C:\Simba\Includes\SRL/SRL/misc/smart.simba

edit. when i try compliling just the C:\Simba\Includes\SRL/SRL/misc/smart.simba script i get the error [Error] (1:1): Unexpected end of file at line 0

Could you post up your C:\Simba\Includes\SRL/SRL/misc/smart.simba ?

~Caotom

Ashaman88
02-18-2012, 03:16 PM
I would first try updating everything and if that didn't work, uninstall and reinstall simba.

Asalci
02-18-2012, 08:23 PM
thanks guys got i fixed now