Log in

View Full Version : Help with simba printonsmart.



laakerules
01-29-2012, 10:17 PM
Okay im trying to print on smart but the actual print on smart file is messed up or something.

im getting
[Error] C:\Simba\Includes\SRL/SRL/misc/paintsmart.simba(12:3): Duplicate identifier 'SMART_Canvas' at line 11
Compiling failed.


And yes i know that supposedly there is a duplicate identifier but heres the lines

var
SMART_Canvas: TBitmap;
SMART_DebugSetup: Boolean;

No duplicate by my standards.

Drakan
01-29-2012, 10:30 PM
It should work out of the box. Are you sure you only included the file once? I am currently using it in my work and it was working fine on a fresh install.

laakerules
01-29-2012, 10:38 PM
Could including 2 times be like declaring

{$DEFINE SRL5}
and also
{$i SRL/SRL/misc/paintsmart.simba}


is that what you mean?

Drakan
01-29-2012, 10:41 PM
I havnt checked if SRL 5 automatically includes the paintsmart file automatically so that's something to check on (I'm on my phone away from home).

EDIT:
Post your script in code tags so we can take a look at it.

laakerules
01-29-2012, 10:46 PM
Lol i just tried doing it with removing the print on smart and it worked! :P

Drakan
01-29-2012, 10:54 PM
;) cheers mate.