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

alot of errors when running script


sundeep125

2008-11-19 13:11:14

okay ive tried everything so far especially smart… when i first got everything that was needed i ran a script and i got an error saying something like error not enough parrameters or something then now when i downloaded a different smart file im getting alot of errors such as :

Failed when compiling
Line 425: [Hint] (18603:1): Variable 'X' never used in script C:\Documents and Settings\Amit\My Documents\Downloads\SCAR 3.15\Scripts\karajma lobbies fisher and banker.scar
Line 425: [Hint] (18603:1): Variable 'Y' never used in script C:\Documents and Settings\Amit\My Documents\Downloads\SCAR 3.15\Scripts\karajma lobbies fisher and banker.scar
Line 489: [Hint] (18667:1): Variable 'PX' never used in script C:\Documents and Settings\Amit\My Documents\Downloads\SCAR 3.15\Scripts\karajma lobbies fisher and banker.scar
Line 489: [Hint] (18667:1): Variable 'PY' never used in script C:\Documents and Settings\Amit\My Documents\Downloads\SCAR 3.15\Scripts\karajma lobbies fisher and banker.scar
Line 704: [Hint] (18882:1): Variable 'TX' never used in script C:\Documents and Settings\Amit\My Documents\Downloads\SCAR 3.15\Scripts\karajma lobbies fisher and banker.scar
Line 704: [Hint] (18882:1): Variable 'TY' never used in script C:\Documents and Settings\Amit\My Documents\Downloads\SCAR 3.15\Scripts\karajma lobbies fisher and banker.scar
Line 773: [Hint] (18951:1): Variable 'TX' never used in script C:\Documents and Settings\Amit\My Documents\Downloads\SCAR 3.15\Scripts\karajma lobbies fisher and banker.scar
Line 773: [Hint] (18951:1): Variable 'TY' never used in script C:\Documents and Settings\Amit\My Documents\Downloads\SCAR 3.15\Scripts\karajma lobbies fisher and banker.scar
Line 819: [Hint] (18997:1): Variable 'PY' never used in script C:\Documents and Settings\Amit\My Documents\Downloads\SCAR 3.15\Scripts\karajma lobbies fisher and banker.scar
Line 955: [Error] (19133:64): Invalid number of parameters in script C:\Documents and Settings\Amit\My Documents\Downloads\SCAR 3.15\Scripts\karajma lobbies fisher and banker.scar

then it points to here:

procedure SetupScript;
begin
ClearDebug;
Intro;
SmartSetup('world'+IntToStr(SmartWorldNo), True, Signed, False);
SetTargetDC(SMARTGetDC);
SetupSRL;

this line here:

SmartSetup('world'+IntToStr(SmartWorldNo), True, Signed, False);

what should i do please help me !

thanks :D

when i try another script i always always get this error

Failed when compiling
Line 1370: [Error] (17705:43): Invalid number of parameters in script C:\Documents and Settings\Amit\My Documents\Downloads\SRL Edgeville Fisher #20.2 Pub.scar

what shyud i do? how shall i solve it?

senrath

2008-11-19 14:26:13

You can ignore the hints, unless you really don't want to. Hints won't stop a script from running.

As for the error, Smart now simply uses this now:
SMARTSetupEx(WorldNum : Integer; Members, Signed, SuperDetail: Boolean);

So try this:
SMARTSetupEx(SmartWorldNo, False, True, False);

Kyle Undefined

2008-11-19 14:26:48

I don't know if this will work but try changing SmartSetup to SMARTSetupEx. It works fine for me.

~Camo

sundeep125

2008-11-19 15:33:53

ok thank you very very much camo but would you please mind telling me where to put that thing u put on the 1st post and the 2nd post :D

thanks mate :D

btw i wud giv u rep or we its called but i dont know how :) hehe

senrath

2008-11-19 15:44:16

Change this line (the one giving the error):
SmartSetup('world'+IntToStr(SmartWorldNo), True, Signed, False);

To this line:
SMARTSetupEx(SmartWorldNo, False, True, False);

sundeep125

2008-11-19 16:05:58

ok thank you very much mate its appreciated ill let u know what happens when i get back and try it :D

cheers peace