Log in

View Full Version : Failed when compiling



Bobzilla69
07-16-2007, 11:44 AM
i produced a script and used the include from SRL, when i run it i get a error message for Line 413: [Error] (14866:5): Unknown identifier 'FindMSDtm' in script C:\Program Files\SCAR 3.11\includes\srl/srl/extended/xObject.scar

any ideas???

LordGregGreg
07-16-2007, 12:50 PM
it would help if you posted the script you are having problemsm with lol.

oh, nvm. I have that script, leme go take a look.

Ok, i just included xObject in a scri[pt of mine. I didnt even use it and it generates the same error... so its not your fault... leme look more into this.

EDIT;

Ok, i did a quick little search (that you should have done) and found the problem.

You are trying to use a dtm method that doesn't exist in srl. That dtm method is part of.

{.include SRL/SRL/extended/xDTM.scar}
so include that first.

Bobarkinator
07-16-2007, 01:08 PM
Change line 414 in xObject.scar to
if (FindDtm(Dtm,tmpx, tmpy, MSX1, MSY1, MSX2, MSY2)) then

Bobzilla69
07-16-2007, 04:04 PM
thanks bobarkinator that worked great.

and sorry for not post my script i didnt really think of posting it, stupid i know but yeh, i didnt use any xDTM in my script but u guys use it in ur srl so when i added one of ur functions it tryed to use it.

thanks for all the help.