PDA

View Full Version : Duplicate???



luckelelle
03-14-2015, 08:26 PM
When including reflection I get this problem:


Error: Duplicate declaration "Skill_Attack" at line 220

help please. :)

Kyle
03-14-2015, 08:33 PM
When including reflection I get this problem:


Error: Duplicate declaration "Skill_Attack" at line 220

help please. :)

I'm assuming you are using it with Aerolib? If so, be sure to include AL first so it looks like:

{$DEFINE SMART}
{$i AeroLib/AeroLib.Simba}
{$i Reflection/Reflection.simba}

luckelelle
03-14-2015, 08:35 PM
I'm assuming you are using it with Aerolib? If so, be sure to include AL first so it looks like:

{$DEFINE SMART}
{$i AeroLib/AeroLib.Simba}
{$i Reflection/Reflection.simba}


No I'm not using AeroLib, no idea what that even is. :p

Harrier
03-14-2015, 08:36 PM
Gonna guess you need to set it to pascal script

luckelelle
03-14-2015, 08:41 PM
Gonna guess you need to set it to pascal script

That gives me this error:


Exception in Script: Unknown compiler directives at 2:3

luckelelle
03-16-2015, 11:10 AM
None knows why this is happening? :(

the bank
03-16-2015, 12:25 PM
Post the code that results in the error.

luckelelle
03-16-2015, 12:55 PM
Post the code that results in the error.

Doesn't matter what the code is. As soon as i include srl and reflect it gives this error.

3Garrett3
03-16-2015, 03:33 PM
That gives me this error:


Exception in Script: Unknown compiler directives at 2:3

This is the error for the wrong compiler (Lape or Pascal) so switch back to what you had before. I think.

So now post the script that is breaking it. I don't care if it's 5 lines, type something up and tell me the error, then I can try to figure out why. I can't just take "everything breaks" because I'm not willing to wade through everything to find your error.

luckelelle
03-17-2015, 04:26 PM
This is the error for the wrong compiler (Lape or Pascal) so switch back to what you had before. I think.

So now post the script that is breaking it. I don't care if it's 5 lines, type something up and tell me the error, then I can try to figure out why. I can't just take "everything breaks" because I'm not willing to wade through everything to find your error.

This is enoguh to get the error.

program new;

{$DEFINE SMART8}
{$I SRL-OSR/SRL.simba}
{$I reflection/Reflection.simba}

begin
end.

Harrier
03-17-2015, 05:50 PM
This is enoguh to get the error.

program new;

{$DEFINE SMART8}
{$I SRL-OSR/SRL.simba}
{$I reflection/Reflection.simba}

begin
end.
Stop using lape reflection with srl-osr, use pascal reflection

Verfy
03-23-2015, 07:33 AM
This is enoguh to get the error.

program new;

{$DEFINE SMART8}
{$I SRL-OSR/SRL.simba}
{$I reflection/Reflection.simba}

begin
end.

What Hawker said, set your interpreter to Lape if you use {$I reflection/Reflection.simba} or to pascal for {$I SRL-OSR/SRL.simba}, I guess you can't use them both in same script.

Your program should look something like that (note that SMART8 is now only SMART) and there's no OS reflection :)

program new;

{$DEFINE SMART}
{$I reflection/Reflection.simba}

begin
end.

BigRedJapan
05-09-2015, 07:26 PM
you stuff should look llike this

{$I SRL-OSR/SRL.Simba}
{$I SRL-OSR/SRL/Reflection/Reflection.simba}