SRL Archive - S.M.A.R.T. Questions and Answers.

SMART_DrawBoxEx help


Okea

2012-07-18 14:06:24

I've updated to SMART v7.2 and i'm trying to edit ashamans altar script.

This is the line of code:

   SMART_DrawBoxEx(True,IntToBox(AltarX1,AltarY1,AltarX2,AltarY2),clGreen);     

this is the error:


[Error] C:\Users\***\Downloads\AshamanAltars.simba(1677:76): Invalid number of parameters at line 1676


Any idea what's going on, because i've tried searching it but can't find much

Thanks

Dan

Brandon

2012-07-18 14:10:28

SMART_DrawBoxEx(True, False, IntToBox(AltarX1,AltarY1,AltarX2,AltarY2), clGreen);

Smart_DrawBoxEx(Clear, Fill, Box, Colour).

Okea

2012-07-18 14:15:09

From: Brandon
SMART_DrawBoxEx(True, False, IntToBox(AltarX1,AltarY1,AltarX2,AltarY2), clGreen);

Smart_DrawBoxEx(Clear, Fill, Box, Colour).


Wicked thank you very much! How did you know that it needed the false parameter?

Brandon

2012-07-18 14:18:55

From: Okea
Wicked thank you very much! How did you know that it needed the false parameter?


I don't. I guessed because the old drawboxes never had the option to fill.. It usually drew an outline. The above will do the exact same.

Whenever you don't know a function definition, you can type it into the Function box on the left side of your simba.

Okea

2012-07-18 14:20:43

From: Brandon
I don't. I guessed because the old drawboxes never had the option to fill.. It usually drew an outline. The above will do the exact same.

Whenever you don't know a function definition, you can type it into the Function box on the left side of your simba.


Sweet, Thank you very much for your help!

Ashaman88

2012-07-18 15:52:31

If you take out those lines it will download the newest version which won't have that compile problem for you. I'll reupload the OP version and fix what needs to be fixed when the official fix comes out

yuhuyu

2012-07-18 16:38:56

thank you brandon that help me, in a script im updating xD. :D